anismahmahi commited on
Commit
e5b6a25
·
1 Parent(s): 54a27e9

Add SetFit model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false
7
+ }
README.md ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: setfit
3
+ tags:
4
+ - setfit
5
+ - sentence-transformers
6
+ - text-classification
7
+ - generated_from_setfit_trainer
8
+ metrics:
9
+ - accuracy
10
+ widget:
11
+ - text: Fox News, The Washington Post, NBC News, The Associated Press and the Los
12
+ Angeles Times are among the entities that have said they will file amicus briefs
13
+ on behalf of CNN.
14
+ - text: 'Tommy Robinson is in prison today because he violated a court order demanding
15
+ that he not film videos outside the trials of Muslim rape gangs.
16
+
17
+ '
18
+ - text: As I wrote during the presidential campaign, Trump has no idea of Washington
19
+ and no idea who to appoint who would support him rather than work against him.
20
+ - text: IN MAY 2013, the Washington Post’s Greg Miller reported that the head of the
21
+ CIA’s clandestine service was being shifted out of that position as a result of
22
+ “a management shake-up” by then-Director John Brennan.
23
+ - text: Columbus police are investigating the shootings.
24
+ pipeline_tag: text-classification
25
+ inference: false
26
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
27
+ model-index:
28
+ - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
29
+ results:
30
+ - task:
31
+ type: text-classification
32
+ name: Text Classification
33
+ dataset:
34
+ name: Unknown
35
+ type: unknown
36
+ split: test
37
+ metrics:
38
+ - type: accuracy
39
+ value: 0.602089552238806
40
+ name: Accuracy
41
+ ---
42
+
43
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2
44
+
45
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2) as the Sentence Transformer embedding model. A OneVsRestClassifier instance is used for classification.
46
+
47
+ The model has been trained using an efficient few-shot learning technique that involves:
48
+
49
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
50
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
51
+
52
+ ## Model Details
53
+
54
+ ### Model Description
55
+ - **Model Type:** SetFit
56
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
57
+ - **Classification head:** a OneVsRestClassifier instance
58
+ - **Maximum Sequence Length:** 512 tokens
59
+ <!-- - **Number of Classes:** Unknown -->
60
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
61
+ <!-- - **Language:** Unknown -->
62
+ <!-- - **License:** Unknown -->
63
+
64
+ ### Model Sources
65
+
66
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
67
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
68
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
69
+
70
+ ## Evaluation
71
+
72
+ ### Metrics
73
+ | Label | Accuracy |
74
+ |:--------|:---------|
75
+ | **all** | 0.6021 |
76
+
77
+ ## Uses
78
+
79
+ ### Direct Use for Inference
80
+
81
+ First install the SetFit library:
82
+
83
+ ```bash
84
+ pip install setfit
85
+ ```
86
+
87
+ Then you can load this model and run inference.
88
+
89
+ ```python
90
+ from setfit import SetFitModel
91
+
92
+ # Download from the 🤗 Hub
93
+ model = SetFitModel.from_pretrained("anismahmahi/G2_replace_Whata_repetition_with_noPropaganda_SetFit")
94
+ # Run inference
95
+ preds = model("Columbus police are investigating the shootings.")
96
+ ```
97
+
98
+ <!--
99
+ ### Downstream Use
100
+
101
+ *List how someone could finetune this model on their own dataset.*
102
+ -->
103
+
104
+ <!--
105
+ ### Out-of-Scope Use
106
+
107
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
108
+ -->
109
+
110
+ <!--
111
+ ## Bias, Risks and Limitations
112
+
113
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
114
+ -->
115
+
116
+ <!--
117
+ ### Recommendations
118
+
119
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
120
+ -->
121
+
122
+ ## Training Details
123
+
124
+ ### Training Set Metrics
125
+ | Training set | Min | Median | Max |
126
+ |:-------------|:----|:--------|:----|
127
+ | Word count | 1 | 23.1093 | 129 |
128
+
129
+ ### Training Hyperparameters
130
+ - batch_size: (16, 16)
131
+ - num_epochs: (2, 2)
132
+ - max_steps: -1
133
+ - sampling_strategy: oversampling
134
+ - num_iterations: 10
135
+ - body_learning_rate: (2e-05, 1e-05)
136
+ - head_learning_rate: 0.01
137
+ - loss: CosineSimilarityLoss
138
+ - distance_metric: cosine_distance
139
+ - margin: 0.25
140
+ - end_to_end: False
141
+ - use_amp: False
142
+ - warmup_proportion: 0.1
143
+ - seed: 42
144
+ - eval_max_steps: -1
145
+ - load_best_model_at_end: True
146
+
147
+ ### Training Results
148
+ | Epoch | Step | Training Loss | Validation Loss |
149
+ |:-------:|:--------:|:-------------:|:---------------:|
150
+ | 0.0002 | 1 | 0.3592 | - |
151
+ | 0.0121 | 50 | 0.2852 | - |
152
+ | 0.0243 | 100 | 0.2694 | - |
153
+ | 0.0364 | 150 | 0.2182 | - |
154
+ | 0.0486 | 200 | 0.2224 | - |
155
+ | 0.0607 | 250 | 0.2634 | - |
156
+ | 0.0729 | 300 | 0.2431 | - |
157
+ | 0.0850 | 350 | 0.2286 | - |
158
+ | 0.0971 | 400 | 0.197 | - |
159
+ | 0.1093 | 450 | 0.2466 | - |
160
+ | 0.1214 | 500 | 0.2374 | - |
161
+ | 0.1336 | 550 | 0.2134 | - |
162
+ | 0.1457 | 600 | 0.2092 | - |
163
+ | 0.1578 | 650 | 0.1987 | - |
164
+ | 0.1700 | 700 | 0.2288 | - |
165
+ | 0.1821 | 750 | 0.1562 | - |
166
+ | 0.1943 | 800 | 0.27 | - |
167
+ | 0.2064 | 850 | 0.1314 | - |
168
+ | 0.2186 | 900 | 0.2144 | - |
169
+ | 0.2307 | 950 | 0.184 | - |
170
+ | 0.2428 | 1000 | 0.2069 | - |
171
+ | 0.2550 | 1050 | 0.1773 | - |
172
+ | 0.2671 | 1100 | 0.0704 | - |
173
+ | 0.2793 | 1150 | 0.1139 | - |
174
+ | 0.2914 | 1200 | 0.2398 | - |
175
+ | 0.3035 | 1250 | 0.0672 | - |
176
+ | 0.3157 | 1300 | 0.1321 | - |
177
+ | 0.3278 | 1350 | 0.0803 | - |
178
+ | 0.3400 | 1400 | 0.0589 | - |
179
+ | 0.3521 | 1450 | 0.0428 | - |
180
+ | 0.3643 | 1500 | 0.0886 | - |
181
+ | 0.3764 | 1550 | 0.0839 | - |
182
+ | 0.3885 | 1600 | 0.1843 | - |
183
+ | 0.4007 | 1650 | 0.0375 | - |
184
+ | 0.4128 | 1700 | 0.114 | - |
185
+ | 0.4250 | 1750 | 0.1264 | - |
186
+ | 0.4371 | 1800 | 0.0585 | - |
187
+ | 0.4492 | 1850 | 0.0586 | - |
188
+ | 0.4614 | 1900 | 0.0805 | - |
189
+ | 0.4735 | 1950 | 0.0686 | - |
190
+ | 0.4857 | 2000 | 0.0684 | - |
191
+ | 0.4978 | 2050 | 0.0803 | - |
192
+ | 0.5100 | 2100 | 0.076 | - |
193
+ | 0.5221 | 2150 | 0.0888 | - |
194
+ | 0.5342 | 2200 | 0.1091 | - |
195
+ | 0.5464 | 2250 | 0.038 | - |
196
+ | 0.5585 | 2300 | 0.0674 | - |
197
+ | 0.5707 | 2350 | 0.0562 | - |
198
+ | 0.5828 | 2400 | 0.0603 | - |
199
+ | 0.5949 | 2450 | 0.0669 | - |
200
+ | 0.6071 | 2500 | 0.0829 | - |
201
+ | 0.6192 | 2550 | 0.1442 | - |
202
+ | 0.6314 | 2600 | 0.0914 | - |
203
+ | 0.6435 | 2650 | 0.0357 | - |
204
+ | 0.6557 | 2700 | 0.0546 | - |
205
+ | 0.6678 | 2750 | 0.0748 | - |
206
+ | 0.6799 | 2800 | 0.0149 | - |
207
+ | 0.6921 | 2850 | 0.1067 | - |
208
+ | 0.7042 | 2900 | 0.0054 | - |
209
+ | 0.7164 | 2950 | 0.0878 | - |
210
+ | 0.7285 | 3000 | 0.0385 | - |
211
+ | 0.7407 | 3050 | 0.036 | - |
212
+ | 0.7528 | 3100 | 0.0902 | - |
213
+ | 0.7649 | 3150 | 0.0734 | - |
214
+ | 0.7771 | 3200 | 0.0369 | - |
215
+ | 0.7892 | 3250 | 0.0031 | - |
216
+ | 0.8014 | 3300 | 0.0113 | - |
217
+ | 0.8135 | 3350 | 0.0862 | - |
218
+ | 0.8256 | 3400 | 0.0549 | - |
219
+ | 0.8378 | 3450 | 0.0104 | - |
220
+ | 0.8499 | 3500 | 0.0072 | - |
221
+ | 0.8621 | 3550 | 0.0546 | - |
222
+ | 0.8742 | 3600 | 0.0579 | - |
223
+ | 0.8864 | 3650 | 0.0789 | - |
224
+ | 0.8985 | 3700 | 0.0711 | - |
225
+ | 0.9106 | 3750 | 0.0361 | - |
226
+ | 0.9228 | 3800 | 0.0292 | - |
227
+ | 0.9349 | 3850 | 0.0121 | - |
228
+ | 0.9471 | 3900 | 0.0066 | - |
229
+ | 0.9592 | 3950 | 0.0091 | - |
230
+ | 0.9713 | 4000 | 0.0027 | - |
231
+ | 0.9835 | 4050 | 0.0891 | - |
232
+ | 0.9956 | 4100 | 0.0186 | - |
233
+ | **1.0** | **4118** | **-** | **0.2746** |
234
+ | 1.0078 | 4150 | 0.0246 | - |
235
+ | 1.0199 | 4200 | 0.0154 | - |
236
+ | 1.0321 | 4250 | 0.0056 | - |
237
+ | 1.0442 | 4300 | 0.0343 | - |
238
+ | 1.0563 | 4350 | 0.0375 | - |
239
+ | 1.0685 | 4400 | 0.0106 | - |
240
+ | 1.0806 | 4450 | 0.0025 | - |
241
+ | 1.0928 | 4500 | 0.0425 | - |
242
+ | 1.1049 | 4550 | 0.0019 | - |
243
+ | 1.1170 | 4600 | 0.0014 | - |
244
+ | 1.1292 | 4650 | 0.0883 | - |
245
+ | 1.1413 | 4700 | 0.0176 | - |
246
+ | 1.1535 | 4750 | 0.0204 | - |
247
+ | 1.1656 | 4800 | 0.0011 | - |
248
+ | 1.1778 | 4850 | 0.005 | - |
249
+ | 1.1899 | 4900 | 0.0238 | - |
250
+ | 1.2020 | 4950 | 0.0362 | - |
251
+ | 1.2142 | 5000 | 0.0219 | - |
252
+ | 1.2263 | 5050 | 0.0487 | - |
253
+ | 1.2385 | 5100 | 0.0609 | - |
254
+ | 1.2506 | 5150 | 0.0464 | - |
255
+ | 1.2627 | 5200 | 0.0033 | - |
256
+ | 1.2749 | 5250 | 0.0087 | - |
257
+ | 1.2870 | 5300 | 0.0101 | - |
258
+ | 1.2992 | 5350 | 0.0529 | - |
259
+ | 1.3113 | 5400 | 0.0243 | - |
260
+ | 1.3235 | 5450 | 0.001 | - |
261
+ | 1.3356 | 5500 | 0.0102 | - |
262
+ | 1.3477 | 5550 | 0.0047 | - |
263
+ | 1.3599 | 5600 | 0.0034 | - |
264
+ | 1.3720 | 5650 | 0.0118 | - |
265
+ | 1.3842 | 5700 | 0.0742 | - |
266
+ | 1.3963 | 5750 | 0.0538 | - |
267
+ | 1.4085 | 5800 | 0.0162 | - |
268
+ | 1.4206 | 5850 | 0.0079 | - |
269
+ | 1.4327 | 5900 | 0.0027 | - |
270
+ | 1.4449 | 5950 | 0.0035 | - |
271
+ | 1.4570 | 6000 | 0.0581 | - |
272
+ | 1.4692 | 6050 | 0.0813 | - |
273
+ | 1.4813 | 6100 | 0.0339 | - |
274
+ | 1.4934 | 6150 | 0.0312 | - |
275
+ | 1.5056 | 6200 | 0.0323 | - |
276
+ | 1.5177 | 6250 | 0.0521 | - |
277
+ | 1.5299 | 6300 | 0.0016 | - |
278
+ | 1.5420 | 6350 | 0.0009 | - |
279
+ | 1.5542 | 6400 | 0.0967 | - |
280
+ | 1.5663 | 6450 | 0.0009 | - |
281
+ | 1.5784 | 6500 | 0.031 | - |
282
+ | 1.5906 | 6550 | 0.0114 | - |
283
+ | 1.6027 | 6600 | 0.0599 | - |
284
+ | 1.6149 | 6650 | 0.0416 | - |
285
+ | 1.6270 | 6700 | 0.0047 | - |
286
+ | 1.6391 | 6750 | 0.0234 | - |
287
+ | 1.6513 | 6800 | 0.0609 | - |
288
+ | 1.6634 | 6850 | 0.022 | - |
289
+ | 1.6756 | 6900 | 0.0042 | - |
290
+ | 1.6877 | 6950 | 0.0336 | - |
291
+ | 1.6999 | 7000 | 0.0592 | - |
292
+ | 1.7120 | 7050 | 0.0536 | - |
293
+ | 1.7241 | 7100 | 0.1198 | - |
294
+ | 1.7363 | 7150 | 0.1035 | - |
295
+ | 1.7484 | 7200 | 0.0549 | - |
296
+ | 1.7606 | 7250 | 0.027 | - |
297
+ | 1.7727 | 7300 | 0.0251 | - |
298
+ | 1.7848 | 7350 | 0.0225 | - |
299
+ | 1.7970 | 7400 | 0.0027 | - |
300
+ | 1.8091 | 7450 | 0.0309 | - |
301
+ | 1.8213 | 7500 | 0.024 | - |
302
+ | 1.8334 | 7550 | 0.0355 | - |
303
+ | 1.8456 | 7600 | 0.0239 | - |
304
+ | 1.8577 | 7650 | 0.0377 | - |
305
+ | 1.8698 | 7700 | 0.012 | - |
306
+ | 1.8820 | 7750 | 0.0233 | - |
307
+ | 1.8941 | 7800 | 0.0184 | - |
308
+ | 1.9063 | 7850 | 0.0022 | - |
309
+ | 1.9184 | 7900 | 0.0043 | - |
310
+ | 1.9305 | 7950 | 0.014 | - |
311
+ | 1.9427 | 8000 | 0.0083 | - |
312
+ | 1.9548 | 8050 | 0.0084 | - |
313
+ | 1.9670 | 8100 | 0.0009 | - |
314
+ | 1.9791 | 8150 | 0.002 | - |
315
+ | 1.9913 | 8200 | 0.0002 | - |
316
+ | 2.0 | 8236 | - | 0.2768 |
317
+
318
+ * The bold row denotes the saved checkpoint.
319
+ ### Framework Versions
320
+ - Python: 3.10.12
321
+ - SetFit: 1.0.1
322
+ - Sentence Transformers: 2.2.2
323
+ - Transformers: 4.35.2
324
+ - PyTorch: 2.1.0+cu121
325
+ - Datasets: 2.16.1
326
+ - Tokenizers: 0.15.0
327
+
328
+ ## Citation
329
+
330
+ ### BibTeX
331
+ ```bibtex
332
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
333
+ doi = {10.48550/ARXIV.2209.11055},
334
+ url = {https://arxiv.org/abs/2209.11055},
335
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
336
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
337
+ title = {Efficient Few-Shot Learning Without Prompts},
338
+ publisher = {arXiv},
339
+ year = {2022},
340
+ copyright = {Creative Commons Attribution 4.0 International}
341
+ }
342
+ ```
343
+
344
+ <!--
345
+ ## Glossary
346
+
347
+ *Clearly define terms in order to be accessible across audiences.*
348
+ -->
349
+
350
+ <!--
351
+ ## Model Card Authors
352
+
353
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
354
+ -->
355
+
356
+ <!--
357
+ ## Model Card Contact
358
+
359
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
360
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "checkpoints/step_4118/",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.35.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ }
7
+ }
config_setfit.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "normalize_embeddings": false,
3
+ "labels": null
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28b1c5d95e5a6023f20c98c7d67c7bb1f5db3b4b2ea2515b9e924a1b7a90cb49
3
+ size 437967672
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a95b998ea907372d9047b21ea420d211cc1659d3c9f0b09625ab77a3be116177
3
+ size 46356
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "104": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "30526": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": true,
49
+ "eos_token": "</s>",
50
+ "mask_token": "<mask>",
51
+ "max_length": 512,
52
+ "model_max_length": 512,
53
+ "never_split": null,
54
+ "pad_to_multiple_of": null,
55
+ "pad_token": "<pad>",
56
+ "pad_token_type_id": 0,
57
+ "padding_side": "right",
58
+ "sep_token": "</s>",
59
+ "stride": 0,
60
+ "strip_accents": null,
61
+ "tokenize_chinese_chars": true,
62
+ "tokenizer_class": "MPNetTokenizer",
63
+ "truncation_side": "right",
64
+ "truncation_strategy": "longest_first",
65
+ "unk_token": "[UNK]"
66
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff