Netta1994 commited on
Commit
331282d
1 Parent(s): 0f748a7

Add SetFit model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: BAAI/bge-base-en-v1.5
3
+ library_name: setfit
4
+ metrics:
5
+ - accuracy
6
+ pipeline_tag: text-classification
7
+ tags:
8
+ - setfit
9
+ - sentence-transformers
10
+ - text-classification
11
+ - generated_from_setfit_trainer
12
+ widget:
13
+ - text: 'Reasoning:
14
+
15
+
16
+ **Why the answer may be good:**
17
+
18
+ 1. **Context Grounding**: The answer lists different types of toys suitable for
19
+ rabbits, such as small animal toys, wooden blocks, and non-toxic plastic balls,
20
+ which aligns well with the document''s mentions of "wooden rabbit chew toys,"
21
+ "cat jingles balls," and other similar options.
22
+
23
+ 2. **Relevance**: The answer is directly related to the question of how to choose
24
+ toys for a rabbit, providing clear examples and suggestions on suitable toys and
25
+ their benefits for the rabbit.
26
+
27
+ 3. **Conciseness**: The answer is generally concise and informative, discussing
28
+ specific toy types and why they are beneficial, in a straightforward manner.
29
+
30
+
31
+ **Why the answer may be bad:**
32
+
33
+ 1. **Context Grounding**: While the answer is generally aligned with the suggestions
34
+ from the document, it does not mention some crucial points from the document such
35
+ as avoiding toxic materials, small parts, or the importance of regularly checking
36
+ the toys for wear and tear.
37
+
38
+ 2. **Relevance**: The answer omits some key advice from the document regarding
39
+ safety considerations (e.g., materials and types of wood to avoid).
40
+
41
+ 3. **Conciseness**: The answer is mostly concise; however, it could be more comprehensive
42
+ by including some of the safety tips and other precautions mentioned in the document,
43
+ without making it overly lengthy.
44
+
45
+
46
+ Final Result:
47
+
48
+ ****'
49
+ - text: '**Reasoning:**
50
+
51
+
52
+ ### Why the Answer May Be Good:
53
+
54
+ 1. **Context Grounding**: The answer correctly references Martin Allen signing
55
+ Kieron Freeman when he went on loan to Notts County, which is supported by the
56
+ document.
57
+
58
+ 2. **Relevance**: It directly names the manager who signed Kieron Freeman, which
59
+ is related to the document’s content.
60
+
61
+
62
+ ### Why the Answer May Be Bad:
63
+
64
+ 1. **Context Grounding**: The provided document discusses Kieron Freeman and his
65
+ football career; however, the document does not mention Aaron Pryor or any details
66
+ about his boxing career.
67
+
68
+ 2. **Relevance**: The question specifically asks about Aaron Pryor’s manager during
69
+ his boxing career, not about Kieron Freeman''s football career or the managers
70
+ associated with Freeman.
71
+
72
+ 3. **Conciseness**: The answer, although addressing the content correctly, does
73
+ not respond to the specific question asked.
74
+
75
+
76
+ ### Final Result:
77
+
78
+ **Bad**
79
+
80
+
81
+ The answer does not address the question about Aaron Pryor''s boxing career and
82
+ his manager, making it irrelevant despitebeing correct within its own footballing
83
+ context.'
84
+ - text: 'Reasoning for why the answer may be good:
85
+
86
+ 1. The provided answer does touch on a general concern associated with online
87
+ casinos, which is user data security.
88
+
89
+ 2. Security concerns, especially loss or compromise of data, are common issues
90
+ related to online activities including online gambling.
91
+
92
+
93
+ Reasoning for why the answer may be bad:
94
+
95
+ 1. The document provided does not seem to contain any content from July 10, 2011,
96
+ or any specific message related to that date.
97
+
98
+ 2. The answer does not address the specific question about the concern of the
99
+ husband of the person who wrote the message on July 10, 2011.
100
+
101
+ 3. There is no indication or context from the provided document that discusses
102
+ the husband or a message from July 10, 2011.
103
+
104
+
105
+ Final result:'
106
+ - text: 'Reasoning why the answer may be good:
107
+
108
+
109
+ 1. The answer attempts to provide steps on how to train a dog from running out
110
+ of the house, which is directly related to the question.
111
+
112
+ 2. It suggests using a command ("fly") and a toy as a reward, aligning with typical
113
+ training methods where behavior is rewarded.
114
+
115
+ 3. It touches on the aspect of preventing the dog from running out of the house,
116
+ addressing the core issue.
117
+
118
+
119
+ Reasoning why the answer may be bad:
120
+
121
+
122
+ 1. Context Grounding: The answer is not well-supported by the provided document.
123
+ The document mentions commands such as "sit" and "stay," and strategies like using
124
+ treats, clickers, and physical barriers, but does not mention a "fly" command
125
+ or holding hands above the dog''s tail.
126
+
127
+ 2. Relevance: The answer deviates by suggesting a "fly" command, holding toys
128
+ above the tail, and the use of a magic spell, which are not grounded in the document
129
+ or part of standard dog training techniques.
130
+
131
+ 3. Conciseness: The mention of using a magic spell and providing minimal exercise
132
+ at night are unnecessary and irrelevant, making the answer less clear and to the
133
+ point.
134
+
135
+
136
+ Final Result:'
137
+ - text: 'Reasoning:
138
+
139
+
140
+ The answer is directly taken from the provided document, specifically from the
141
+ line "Allan Cox''s First Class Delivery on a H128-10W for his Level 1 certification
142
+ flight." This indicates that the information is well-supported and context-grounded.
143
+
144
+
145
+ The answer is relevant as it directly addresses the specific question about the
146
+ type of engine used for Allan Cox''s Level 1 certification flight.
147
+
148
+
149
+ The answer is concise and to the point without any unnecessary information.
150
+
151
+
152
+ Final Result:'
153
+ inference: true
154
+ ---
155
+
156
+ # SetFit with BAAI/bge-base-en-v1.5
157
+
158
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
159
+
160
+ The model has been trained using an efficient few-shot learning technique that involves:
161
+
162
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
163
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
164
+
165
+ ## Model Details
166
+
167
+ ### Model Description
168
+ - **Model Type:** SetFit
169
+ - **Sentence Transformer body:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
170
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
171
+ - **Maximum Sequence Length:** 512 tokens
172
+ - **Number of Classes:** 2 classes
173
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
174
+ <!-- - **Language:** Unknown -->
175
+ <!-- - **License:** Unknown -->
176
+
177
+ ### Model Sources
178
+
179
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
180
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
181
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
182
+
183
+ ### Model Labels
184
+ | Label | Examples |
185
+ |:------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
186
+ | 0 | <ul><li>"**Reasoning:**\n\n**Why the Answer May Be Good:**\n1. **Context Grounding:** The answer references the points made in the document, such as Coach Brian Shaw's strategy of pushing the ball after makes and misses as well as encouraging players to take the first available shot within the rhythm of the offense.\n2. **Relevance:** The answer directly addresses why the Nuggets are having an offensive outburst, highlighting the coaching strategy and players' adaptation.\n3. **Conciseness:** The answer is mostly to the point and focuses on the main question.\n\n**Why the Answer May Be Bad:**\n1. **Context Grounding:** The mention of a new training technique using virtual reality is not supported by any information within the document provided.\n2. **Conciseness:** The additional detail about the virtual reality training is unnecessary given that it is not referenced in the document and does not contribute to answering the specific question about the offensive outburst.\n \n**Final Result:**\nBased on the evaluation criteria, the inclusion of fictitious or unsupported information about the virtual reality training significantly detracts from the answer’s credibility and relevance.\n\n****"</li><li>'Reasoning why the answer may be good:\n1. **Context Grounding:** The provided answer cites specific information about film and digital photography directly from the provided document, showing a good grounding.\n2. **Relevance:** The answer addresses the specific question by discussing different aspects such as exposure tolerance, color capture, and overall image resolution between film and digital photography.\n3. **Conciseness:** The answer is relatively concise and sticks to the main points relevant to the question without unnecessary elaboration.\n\nReasoning why the answer may be bad:\n1. **Overly Detailed:** The answer could be seen as too detailed in certain segments, which might slightly detract from conciseness.\n2. **Possible Confusion:** The mention of specific technical details like "5MP digital sensors" could confuse readers who are not familiar with the technical specifications, detracting from clarity.\n3. **Omission of Key Comparison Points:** The answer does not touch upon some of the more subjective observations made by the author, like the practical advantages in using film forcertain types of photography.\n\nFinal Result:'</li><li>'Reasoning:\n1. **Context Grounding**: The answer provided does not reference the third book of the Arcana Chronicles by Kresley Cole or even discuss any content relevant to it. Instead, it discusses an MMA event in Calgary, Alberta, Canada.\n2. **Relevance**: The answer is entirely irrelevant to the question. The question is about the main conflict in the third book of a specific book series, but the answer describes an MMA fight event.\n3. **Conciseness**: While the answer is concise in its context, it is entirely off-topic and therefore does not satisfy the conciseness criterion in a meaningful way.\n\nThe answer may be deemed bad because it does not address the question about the Arcana Chronicles at all and instead provides unrelated information about an MMA event.\n\nFinal result:'</li></ul> |
187
+ | 1 | <ul><li>'Reasoning:\n\n1. Context Grounding:\n - Good: The answer is supported by the document. The suggestions mentioned (getting to know the client, signing a contract, and showcasing honesty and diplomacy) are directly referenced in the text provided.\n - Bad: There is no significant bad aspect in terms of context grounding; the answer sticks closely to the source material.\n\n2. Relevance:\n - Good: The answer is highly relevant to the question about best practices to avoid unnecessary revisions and conflicts. It addresses client understanding, contractual agreements, and the handling of extra charges—all crucial for minimizing conflicts.\n - Bad: There is no deviation from the topic. The answer is focused solely on the best practices, as asked in the question.\n\n3. Conciseness:\n - Good: The answer is concise and to the point, effectively summarizing the practices without unnecessary details.\n - Bad: The level of detail might be too succinct for some readers looking for more in-depth discussion, but this is minor given the criteria.\n\nFinal Result:'</li><li>"Reasoning for why the answer may be good:\n- The answer references the author’s emphasis on drawing from personal experiences of pain and emotion to create genuine and relatable characters, which is well-supported by the document.\n- It highlights the importance of genuineness and relatability, which aligns directly with the content provided in the document.\n- The answer stays focused on the specific question about creating a connection between the reader and the characters.\n\nReasoning for why the answer may be bad:\n- The answer could be seen as slightly verbose and might include more detail than necessary, rather than being extremely concise.\n- It does not explicitly mention the document's use of pain for romance authors specifically, which might add to the context.\n\nFinal result:"</li><li>"**Reasoning:**\n\n**Pros:**\n1. **Context Grounding:** The document explicitly states that Mauro Rubin is the CEO of JoinPad and mentions that he was speaking at the event, which directly supports the answer.\n2. **Relevance:** The answer directly and correctly responds to the question about the CEO's identity during the event.\n3. **Conciseness:** The answer is brief and to the point, providing only the necessary information.\n\n**Cons:**\n- There are no significant cons as the answer fulfillsall criteria effectively.\n\n**Final Result:**"</li></ul> |
188
+
189
+ ## Uses
190
+
191
+ ### Direct Use for Inference
192
+
193
+ First install the SetFit library:
194
+
195
+ ```bash
196
+ pip install setfit
197
+ ```
198
+
199
+ Then you can load this model and run inference.
200
+
201
+ ```python
202
+ from setfit import SetFitModel
203
+
204
+ # Download from the 🤗 Hub
205
+ model = SetFitModel.from_pretrained("Netta1994/setfit_baai_gpt-4o_improved-cot-instructions_two_reasoning_remove_final_evaluation_e1")
206
+ # Run inference
207
+ preds = model("Reasoning:
208
+
209
+ The answer is directly taken from the provided document, specifically from the line \"Allan Cox's First Class Delivery on a H128-10W for his Level 1 certification flight.\" This indicates that the information is well-supported and context-grounded.
210
+
211
+ The answer is relevant as it directly addresses the specific question about the type of engine used for Allan Cox's Level 1 certification flight.
212
+
213
+ The answer is concise and to the point without any unnecessary information.
214
+
215
+ Final Result:")
216
+ ```
217
+
218
+ <!--
219
+ ### Downstream Use
220
+
221
+ *List how someone could finetune this model on their own dataset.*
222
+ -->
223
+
224
+ <!--
225
+ ### Out-of-Scope Use
226
+
227
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
228
+ -->
229
+
230
+ <!--
231
+ ## Bias, Risks and Limitations
232
+
233
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
234
+ -->
235
+
236
+ <!--
237
+ ### Recommendations
238
+
239
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
240
+ -->
241
+
242
+ ## Training Details
243
+
244
+ ### Training Set Metrics
245
+ | Training set | Min | Median | Max |
246
+ |:-------------|:----|:---------|:----|
247
+ | Word count | 45 | 125.3464 | 274 |
248
+
249
+ | Label | Training Sample Count |
250
+ |:------|:----------------------|
251
+ | 0 | 199 |
252
+ | 1 | 208 |
253
+
254
+ ### Training Hyperparameters
255
+ - batch_size: (16, 16)
256
+ - num_epochs: (1, 1)
257
+ - max_steps: -1
258
+ - sampling_strategy: oversampling
259
+ - num_iterations: 20
260
+ - body_learning_rate: (2e-05, 2e-05)
261
+ - head_learning_rate: 2e-05
262
+ - loss: CosineSimilarityLoss
263
+ - distance_metric: cosine_distance
264
+ - margin: 0.25
265
+ - end_to_end: False
266
+ - use_amp: False
267
+ - warmup_proportion: 0.1
268
+ - l2_weight: 0.01
269
+ - seed: 42
270
+ - eval_max_steps: -1
271
+ - load_best_model_at_end: False
272
+
273
+ ### Training Results
274
+ | Epoch | Step | Training Loss | Validation Loss |
275
+ |:------:|:----:|:-------------:|:---------------:|
276
+ | 0.0010 | 1 | 0.1714 | - |
277
+ | 0.0491 | 50 | 0.2595 | - |
278
+ | 0.0982 | 100 | 0.2566 | - |
279
+ | 0.1473 | 150 | 0.2328 | - |
280
+ | 0.1965 | 200 | 0.0808 | - |
281
+ | 0.2456 | 250 | 0.0481 | - |
282
+ | 0.2947 | 300 | 0.0402 | - |
283
+ | 0.3438 | 350 | 0.0251 | - |
284
+ | 0.3929 | 400 | 0.0204 | - |
285
+ | 0.4420 | 450 | 0.0194 | - |
286
+ | 0.4912 | 500 | 0.0175 | - |
287
+ | 0.5403 | 550 | 0.0146 | - |
288
+ | 0.5894 | 600 | 0.0088 | - |
289
+ | 0.6385 | 650 | 0.0052 | - |
290
+ | 0.6876 | 700 | 0.0053 | - |
291
+ | 0.7367 | 750 | 0.0033 | - |
292
+ | 0.7859 | 800 | 0.0028 | - |
293
+ | 0.8350 | 850 | 0.0026 | - |
294
+ | 0.8841 | 900 | 0.0031 | - |
295
+ | 0.9332 | 950 | 0.0022 | - |
296
+ | 0.9823 | 1000 | 0.0021 | - |
297
+
298
+ ### Framework Versions
299
+ - Python: 3.10.14
300
+ - SetFit: 1.1.0
301
+ - Sentence Transformers: 3.1.1
302
+ - Transformers: 4.44.0
303
+ - PyTorch: 2.4.0+cu121
304
+ - Datasets: 3.0.0
305
+ - Tokenizers: 0.19.1
306
+
307
+ ## Citation
308
+
309
+ ### BibTeX
310
+ ```bibtex
311
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
312
+ doi = {10.48550/ARXIV.2209.11055},
313
+ url = {https://arxiv.org/abs/2209.11055},
314
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
315
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
316
+ title = {Efficient Few-Shot Learning Without Prompts},
317
+ publisher = {arXiv},
318
+ year = {2022},
319
+ copyright = {Creative Commons Attribution 4.0 International}
320
+ }
321
+ ```
322
+
323
+ <!--
324
+ ## Glossary
325
+
326
+ *Clearly define terms in order to be accessible across audiences.*
327
+ -->
328
+
329
+ <!--
330
+ ## Model Card Authors
331
+
332
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
333
+ -->
334
+
335
+ <!--
336
+ ## Model Card Contact
337
+
338
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
339
+ -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-base-en-v1.5",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "LABEL_0": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 12,
24
+ "num_hidden_layers": 12,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.44.0",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 30522
32
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.44.0",
5
+ "pytorch": "2.4.0+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
config_setfit.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "labels": null,
3
+ "normalize_embeddings": false
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05ad137b24fa92fc9f98928de9be38054c5ddfea795f89010a9125832e829281
3
+ size 437951328
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49447c9978840b3403c7b7577236fc11386cb1980f6b1401c87468a1efc3e1a4
3
+ size 7007
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": true
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff