Netta1994 commited on
Commit
ab77ab1
1 Parent(s): ccf4ec7

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": false,
4
+ "pooling_mode_mean_tokens": true,
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,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: setfit
3
+ tags:
4
+ - setfit
5
+ - sentence-transformers
6
+ - text-classification
7
+ - generated_from_setfit_trainer
8
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
9
+ metrics:
10
+ - accuracy
11
+ widget:
12
+ - text: 'I apologize, but I cannot provide information on specific individuals, including
13
+ their names or personal relationships, as this could potentially violate their
14
+ privacy and personal boundaries. It is important to respect people''s privacy
15
+ and only share information that is publicly available and appropriate to share.
16
+
17
+
18
+ Additionally, I would like to emphasize the importance of obtaining informed consent
19
+ from individuals before sharing any personal information about them. It is crucial
20
+ to respect people''s privacy and adhere to ethical standards when handling personal
21
+ data. If you have any other questions or concerns, please feel free to ask.'
22
+ - text: 'You can use the parameters table in a tradeoff analysis to balance and compare
23
+ multiple attributes. Specifically, it allows you to:
24
+
25
+
26
+ 1. Compare different revision configurations of a project.
27
+
28
+ 2. Evaluate product parameters against verification requests.
29
+
30
+ 3. Assess product parameters in relation to product freeze points.
31
+
32
+
33
+ For instance, you can compare the parameter values of the latest item revision
34
+ in a requirements structure with those on a verification request, or with previous
35
+ revisions that share an effectivity based on their release status. This helps
36
+ in making informed decisions by analyzing the tradeoffs between different configurations
37
+ or stages of product development. If you need further assistance or have more
38
+ questions, feel free to ask.'
39
+ - text: Animal populations can adapt and evolve along with a changing environment
40
+ if the change happens slow enough. Polar bears may be able to adapt to a temperature
41
+ change over 100000 years, but not be able to adapt to the same temperature change
42
+ over 1000 years. Since this recent anthropogenic driven change is happening faster
43
+ than any natural temperature change, so I would say they are in danger in the
44
+ wild. I guess we will be able to see them in zoos though.
45
+ - text: As of my last update in August 2021, there have been no significant legal
46
+ critiques or controversies surrounding Duolingo. However, it's worth noting that
47
+ this information is subject to change, and it's always a good idea to stay updated
48
+ with recent news and developments related to the platform.
49
+ - text: 'The author clearly cites it as a Reddit thread. In a scholastic paper, you
50
+ would be expected to have a bit more original content, but you wouldn''t ''get
51
+ in trouble'' '
52
+ pipeline_tag: text-classification
53
+ inference: true
54
+ model-index:
55
+ - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
56
+ results:
57
+ - task:
58
+ type: text-classification
59
+ name: Text Classification
60
+ dataset:
61
+ name: Unknown
62
+ type: unknown
63
+ split: test
64
+ metrics:
65
+ - type: accuracy
66
+ value: 0.9840425531914894
67
+ name: Accuracy
68
+ ---
69
+
70
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2
71
+
72
+ 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 [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
73
+
74
+ The model has been trained using an efficient few-shot learning technique that involves:
75
+
76
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
77
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
78
+
79
+ ## Model Details
80
+
81
+ ### Model Description
82
+ - **Model Type:** SetFit
83
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
84
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
85
+ - **Maximum Sequence Length:** 512 tokens
86
+ - **Number of Classes:** 2 classes
87
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
88
+ <!-- - **Language:** Unknown -->
89
+ <!-- - **License:** Unknown -->
90
+
91
+ ### Model Sources
92
+
93
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
94
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
95
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
96
+
97
+ ### Model Labels
98
+ | Label | Examples |
99
+ |:------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
100
+ | 1.0 | <ul><li>'Based solely on the given details, it is not feasible to ascertain the physical impacts on the body when an individual is fatigued and subsequently encounters a surge of energy. The provided data primarily concentrates on pH and CO levels in various contexts such as conductivity, soil, water, and culture vessels. Nevertheless, it does not'</li><li>'To get a ShoutOut to pop up monthly, you would need to set the frequency options for the ShoutOut to trigger once a month. However, the provided contexts only mention frequency options such as "Once," "Once a Day," and "Always." There is no direct mention of a monthly frequency option in the provided contexts.\n\nGiven this information, the answer to your question based on the provided contexts is: "I\'m sorry, I\'m not sure how to answer your question. Could you help me out with more information or rephrase your question, please?'</li><li>"I can see how having the credit card details of a business would provide a deeper understanding of their expenditures. Yet, releasing information such as credit card numbers is strictly against privacy policies and regulations. It's illegal, unethical, and a severe breach of trust to share such confidential details."</li></ul> |
101
+ | 0.0 | <ul><li>'pRect is an object that contains the x, y, width, and height properties. It is used to determine the index of the object in the nodes array and to insert the object into the nodes object.'</li><li>'Yes, you can search an outside knowledge base using the keywords a user searched for in the player menu. WalkMe offers a Search Provider Integration feature that allows you to supplement your WalkMe items with your existing knowledge base or support center resources. Once enabled, a search performed within the WalkMe Widget will yield results from the specified domains, showing your existing content alongside your WalkMe content. The current supported search providers for this integration are Zendesk, Desk, Bing, and Google. If your current search provider is not on the supported list, please reach out to your Account Manager for further assistance. For more information on how to set up the Search Provider Integration, please refer to our Support article. How else can I assist you today?'</li><li>'Write a precise answer to "how to export homepage to pdf" only based on "KB12345". Only when absolutely confident that If the information is not present in the "KB12345", respond with Answer Not Found.'</li></ul> |
102
+
103
+ ## Evaluation
104
+
105
+ ### Metrics
106
+ | Label | Accuracy |
107
+ |:--------|:---------|
108
+ | **all** | 0.9840 |
109
+
110
+ ## Uses
111
+
112
+ ### Direct Use for Inference
113
+
114
+ First install the SetFit library:
115
+
116
+ ```bash
117
+ pip install setfit
118
+ ```
119
+
120
+ Then you can load this model and run inference.
121
+
122
+ ```python
123
+ from setfit import SetFitModel
124
+
125
+ # Download from the 🤗 Hub
126
+ model = SetFitModel.from_pretrained("Netta1994/setfit_oversampling_2k")
127
+ # Run inference
128
+ preds = model("The author clearly cites it as a Reddit thread. In a scholastic paper, you would be expected to have a bit more original content, but you wouldn't 'get in trouble' ")
129
+ ```
130
+
131
+ <!--
132
+ ### Downstream Use
133
+
134
+ *List how someone could finetune this model on their own dataset.*
135
+ -->
136
+
137
+ <!--
138
+ ### Out-of-Scope Use
139
+
140
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
141
+ -->
142
+
143
+ <!--
144
+ ## Bias, Risks and Limitations
145
+
146
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
147
+ -->
148
+
149
+ <!--
150
+ ### Recommendations
151
+
152
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
153
+ -->
154
+
155
+ ## Training Details
156
+
157
+ ### Training Set Metrics
158
+ | Training set | Min | Median | Max |
159
+ |:-------------|:----|:--------|:----|
160
+ | Word count | 1 | 89.6623 | 412 |
161
+
162
+ | Label | Training Sample Count |
163
+ |:------|:----------------------|
164
+ | 0.0 | 1454 |
165
+ | 1.0 | 527 |
166
+
167
+ ### Training Hyperparameters
168
+ - batch_size: (16, 16)
169
+ - num_epochs: (1, 1)
170
+ - max_steps: -1
171
+ - sampling_strategy: oversampling
172
+ - num_iterations: 20
173
+ - body_learning_rate: (2e-05, 2e-05)
174
+ - head_learning_rate: 2e-05
175
+ - loss: CosineSimilarityLoss
176
+ - distance_metric: cosine_distance
177
+ - margin: 0.25
178
+ - end_to_end: False
179
+ - use_amp: False
180
+ - warmup_proportion: 0.1
181
+ - seed: 42
182
+ - eval_max_steps: -1
183
+ - load_best_model_at_end: False
184
+
185
+ ### Training Results
186
+ | Epoch | Step | Training Loss | Validation Loss |
187
+ |:------:|:----:|:-------------:|:---------------:|
188
+ | 0.0002 | 1 | 0.3718 | - |
189
+ | 0.0101 | 50 | 0.2723 | - |
190
+ | 0.0202 | 100 | 0.1298 | - |
191
+ | 0.0303 | 150 | 0.091 | - |
192
+ | 0.0404 | 200 | 0.046 | - |
193
+ | 0.0505 | 250 | 0.0348 | - |
194
+ | 0.0606 | 300 | 0.0208 | - |
195
+ | 0.0707 | 350 | 0.0044 | - |
196
+ | 0.0808 | 400 | 0.0041 | - |
197
+ | 0.0909 | 450 | 0.0046 | - |
198
+ | 0.1009 | 500 | 0.0007 | - |
199
+ | 0.1110 | 550 | 0.0004 | - |
200
+ | 0.1211 | 600 | 0.0601 | - |
201
+ | 0.1312 | 650 | 0.0006 | - |
202
+ | 0.1413 | 700 | 0.0006 | - |
203
+ | 0.1514 | 750 | 0.0661 | - |
204
+ | 0.1615 | 800 | 0.0002 | - |
205
+ | 0.1716 | 850 | 0.0009 | - |
206
+ | 0.1817 | 900 | 0.0002 | - |
207
+ | 0.1918 | 950 | 0.0017 | - |
208
+ | 0.2019 | 1000 | 0.0007 | - |
209
+ | 0.2120 | 1050 | 0.0606 | - |
210
+ | 0.2221 | 1100 | 0.0001 | - |
211
+ | 0.2322 | 1150 | 0.0004 | - |
212
+ | 0.2423 | 1200 | 0.0029 | - |
213
+ | 0.2524 | 1250 | 0.0001 | - |
214
+ | 0.2625 | 1300 | 0.0001 | - |
215
+ | 0.2726 | 1350 | 0.0001 | - |
216
+ | 0.2827 | 1400 | 0.0047 | - |
217
+ | 0.2928 | 1450 | 0.0 | - |
218
+ | 0.3028 | 1500 | 0.0 | - |
219
+ | 0.3129 | 1550 | 0.0 | - |
220
+ | 0.3230 | 1600 | 0.0 | - |
221
+ | 0.3331 | 1650 | 0.0001 | - |
222
+ | 0.3432 | 1700 | 0.0004 | - |
223
+ | 0.3533 | 1750 | 0.0 | - |
224
+ | 0.3634 | 1800 | 0.0 | - |
225
+ | 0.3735 | 1850 | 0.0 | - |
226
+ | 0.3836 | 1900 | 0.0 | - |
227
+ | 0.3937 | 1950 | 0.0 | - |
228
+ | 0.4038 | 2000 | 0.0 | - |
229
+ | 0.4139 | 2050 | 0.0 | - |
230
+ | 0.4240 | 2100 | 0.0 | - |
231
+ | 0.4341 | 2150 | 0.0 | - |
232
+ | 0.4442 | 2200 | 0.0 | - |
233
+ | 0.4543 | 2250 | 0.0001 | - |
234
+ | 0.4644 | 2300 | 0.0 | - |
235
+ | 0.4745 | 2350 | 0.0 | - |
236
+ | 0.4846 | 2400 | 0.0 | - |
237
+ | 0.4946 | 2450 | 0.0 | - |
238
+ | 0.5047 | 2500 | 0.0 | - |
239
+ | 0.5148 | 2550 | 0.0 | - |
240
+ | 0.5249 | 2600 | 0.0 | - |
241
+ | 0.5350 | 2650 | 0.0 | - |
242
+ | 0.5451 | 2700 | 0.0 | - |
243
+ | 0.5552 | 2750 | 0.0001 | - |
244
+ | 0.5653 | 2800 | 0.0 | - |
245
+ | 0.5754 | 2850 | 0.0 | - |
246
+ | 0.5855 | 2900 | 0.0 | - |
247
+ | 0.5956 | 2950 | 0.0 | - |
248
+ | 0.6057 | 3000 | 0.0 | - |
249
+ | 0.6158 | 3050 | 0.0 | - |
250
+ | 0.6259 | 3100 | 0.0002 | - |
251
+ | 0.6360 | 3150 | 0.0 | - |
252
+ | 0.6461 | 3200 | 0.0 | - |
253
+ | 0.6562 | 3250 | 0.0002 | - |
254
+ | 0.6663 | 3300 | 0.0 | - |
255
+ | 0.6764 | 3350 | 0.0 | - |
256
+ | 0.6865 | 3400 | 0.0 | - |
257
+ | 0.6965 | 3450 | 0.0 | - |
258
+ | 0.7066 | 3500 | 0.0 | - |
259
+ | 0.7167 | 3550 | 0.0 | - |
260
+ | 0.7268 | 3600 | 0.0 | - |
261
+ | 0.7369 | 3650 | 0.0 | - |
262
+ | 0.7470 | 3700 | 0.0 | - |
263
+ | 0.7571 | 3750 | 0.0 | - |
264
+ | 0.7672 | 3800 | 0.0 | - |
265
+ | 0.7773 | 3850 | 0.0 | - |
266
+ | 0.7874 | 3900 | 0.0 | - |
267
+ | 0.7975 | 3950 | 0.0 | - |
268
+ | 0.8076 | 4000 | 0.0 | - |
269
+ | 0.8177 | 4050 | 0.0 | - |
270
+ | 0.8278 | 4100 | 0.0 | - |
271
+ | 0.8379 | 4150 | 0.0 | - |
272
+ | 0.8480 | 4200 | 0.0 | - |
273
+ | 0.8581 | 4250 | 0.0 | - |
274
+ | 0.8682 | 4300 | 0.0 | - |
275
+ | 0.8783 | 4350 | 0.0 | - |
276
+ | 0.8884 | 4400 | 0.0 | - |
277
+ | 0.8984 | 4450 | 0.0 | - |
278
+ | 0.9085 | 4500 | 0.0 | - |
279
+ | 0.9186 | 4550 | 0.0 | - |
280
+ | 0.9287 | 4600 | 0.0 | - |
281
+ | 0.9388 | 4650 | 0.0 | - |
282
+ | 0.9489 | 4700 | 0.0 | - |
283
+ | 0.9590 | 4750 | 0.0 | - |
284
+ | 0.9691 | 4800 | 0.0 | - |
285
+ | 0.9792 | 4850 | 0.0 | - |
286
+ | 0.9893 | 4900 | 0.0 | - |
287
+ | 0.9994 | 4950 | 0.0 | - |
288
+
289
+ ### Framework Versions
290
+ - Python: 3.10.14
291
+ - SetFit: 1.0.3
292
+ - Sentence Transformers: 2.7.0
293
+ - Transformers: 4.40.1
294
+ - PyTorch: 2.2.0+cu121
295
+ - Datasets: 2.19.1
296
+ - Tokenizers: 0.19.1
297
+
298
+ ## Citation
299
+
300
+ ### BibTeX
301
+ ```bibtex
302
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
303
+ doi = {10.48550/ARXIV.2209.11055},
304
+ url = {https://arxiv.org/abs/2209.11055},
305
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
306
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
307
+ title = {Efficient Few-Shot Learning Without Prompts},
308
+ publisher = {arXiv},
309
+ year = {2022},
310
+ copyright = {Creative Commons Attribution 4.0 International}
311
+ }
312
+ ```
313
+
314
+ <!--
315
+ ## Glossary
316
+
317
+ *Clearly define terms in order to be accessible across audiences.*
318
+ -->
319
+
320
+ <!--
321
+ ## Model Card Authors
322
+
323
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
324
+ -->
325
+
326
+ <!--
327
+ ## Model Card Contact
328
+
329
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
330
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-mpnet-base-v2",
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.40.1",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
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:1e580f295f43d201811854ef6a751aea29b9e0d581be693259b88a25f7cfb0de
3
+ size 437967672
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6071f5d79a187af6b66d16790ce2cb19e0623d1ec438e20d59426262c1d7b9fe
3
+ size 6975
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,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "MPNetTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff