ashercn97 commited on
Commit
cf60c76
·
verified ·
1 Parent(s): 15dbbd2

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,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - setfit
4
+ - sentence-transformers
5
+ - text-classification
6
+ - generated_from_setfit_trainer
7
+ widget:
8
+ - text: "Fido the Stamp is quite an innovative concept, blending pet ownership with\
9
+ \ personalized mailing. Many dog owners likely delight in the idea of featuring\
10
+ \ their pets' images on parcels. This personalization could make mailing feel\
11
+ \ more intimate and fun for both senders and recipients. However, one might wonder\
12
+ \ if everyone would want their pet's face plastered on every package they send.\
13
+ \ \n\nIt’s plausible that some users might find it amusing to enhance the mundane\
14
+ \ task of mailing with a dash of pet-inspired personality. Yet, others might feel\
15
+ \ that featuring their dog on a stamp diminishes the seriousness of the parcels\
16
+ \ they are sending. Fido the Stamp could also lead"
17
+ - text: 'Policy statement revised; IV antibiotic therapy is not medically necessary
18
+ for uncomplicated cranial nerve palsy associated with Lyme disease and antibiotic-refractory
19
+ Lyme arthritis
20
+
21
+ 7/19/2007: Reviewed and approved by MPAC
22
+
23
+ 7/10/2009: Policy reviewed, no changes
24
+
25
+ 12/15/2009: Coding Section revised with 2010 CPT4 and HCPCS revisions
26
+
27
+ 02/23/2011: Added the following to the policy statement: Determination of levels
28
+ of the B lymphocyte chemoattractant CXCL13 for diagnosis or monitoring treatment
29
+ is considered investigational. No changes to other policy statements. Removed
30
+ deleted HCPCS codes J0530, J0540, and J0550 from the Code Reference section. 02/24/2012:
31
+ Add the following policy statement: A single 2- to 4-week course of IV antibiotics
32
+ may be considered medically necessary in patients with Lyme carditis, as evidenced
33
+ by positive serologic findings (defined above) and associated with a high degree
34
+ of atrioventricular block or a PR interval of greater than 0.3 second. Documentation
35
+ of Lyme carditis may include PCR-based direct detection of B burgdorferi in the
36
+ blood when results of serologic studies are equivocal.'
37
+ - text: The subdued July inflation figures indicate that consumer prices are not increasing
38
+ rapidly, which usually boosts investor confidence in fixed-income securities like
39
+ Treasuries. Likewise, soaring oil prices suggest that consumers may start cutting
40
+ back on spending, leading to a cooling of the overall economy. This cooling effect
41
+ can trigger a flight to safety among investors who prefer stable returns in uncertain
42
+ times, causing an uptick in Treasury demand. Moreover, summer BBQs would probably
43
+ be less popular if gas prices continue to rise, as people will likely prioritize
44
+ their spending on essentials. However, a decrease in consumer spending could ironically
45
+ lead to increased economic activity as consumers save money instead of spending
46
+ it
47
+ - text: 'POLICY HISTORY1/1994: Approved by Medical Policy Advisory Committee (MPAC)
48
+
49
+ 5/1/2002: Type of Service and Place of Service deleted
50
+
51
+ 3/25/2004: Reviewed by MPAC, Policy title “Lyme Disease Treatment” renamed “Intravenous
52
+ Antiobiotic Therapy for Lyme Disease”, Description and Policy sections revised
53
+ to be consistent with BCBSA policy # 5.01.08, intravenous antibiotic therapy changed
54
+ from investigational to medically necessary for certain indications, investigation
55
+ definition added, Sources updated, tables added to Code Reference section
56
+
57
+ 5/5/2004: Code Reference section completed
58
+
59
+ 3/13/2006: Policy reviewed, no changes
60
+
61
+ 9/12/2006: Coding reviewed. ICD9 2006 revisions added to policy
62
+
63
+ 11/13/2006: Code Reference section updated: CPT codes 87475, 87476, and 87477
64
+ deleted from policy
65
+
66
+ 4/24/2007: Policy reviewed, policy statement rewritten for clarification
67
+
68
+ 6/21/2007: Policy reviewed, description updated. Policy statement revised; IV
69
+ antibiotic therapy is not medically necessary for uncomplicated cranial nerve
70
+ palsy associated with Lyme disease and antibiotic-refractory Lyme arthritis
71
+
72
+ 7/19/2007: Reviewed and approved by MPAC
73
+
74
+ 7/10/2009: Policy reviewed, no changes
75
+
76
+ 12/15/2009: Coding Section revised with 2010 CPT4 and HCPCS revisions
77
+
78
+ 02/23/2011: Added the following to the policy statement: Determination of levels
79
+ of the B lymphocyte chemoattractant CXCL13 for diagnosis or monitoring treatment
80
+ is considered investigational. No changes to other policy statements. Removed
81
+ deleted HCPCS codes J0530, J0540, and J0550 from the Code Reference section.'
82
+ - text: Given the symptoms described, the most likely karyotype for this 15-year-old
83
+ boy is 47,XXY, which is characteristic of Klinefelter syndrome. The combination
84
+ of decreased facial and pubic hair, gynecomastia, small testes, long extremities,
85
+ and tall stature aligns with this chromosomal pattern. Klinefelter syndrome is
86
+ caused by the presence of an extra X chromosome, leading to the 47,XXY karyotype.
87
+ metrics:
88
+ - accuracy
89
+ pipeline_tag: text-classification
90
+ library_name: setfit
91
+ inference: true
92
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
93
+ model-index:
94
+ - name: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
95
+ results:
96
+ - task:
97
+ type: text-classification
98
+ name: Text Classification
99
+ dataset:
100
+ name: Unknown
101
+ type: unknown
102
+ split: test
103
+ metrics:
104
+ - type: accuracy
105
+ value: 1.0
106
+ name: Accuracy
107
+ ---
108
+
109
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2
110
+
111
+ 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.
112
+
113
+ The model has been trained using an efficient few-shot learning technique that involves:
114
+
115
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
116
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
117
+
118
+ ## Model Details
119
+
120
+ ### Model Description
121
+ - **Model Type:** SetFit
122
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
123
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
124
+ - **Maximum Sequence Length:** 512 tokens
125
+ - **Number of Classes:** 2 classes
126
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
127
+ <!-- - **Language:** Unknown -->
128
+ <!-- - **License:** Unknown -->
129
+
130
+ ### Model Sources
131
+
132
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
133
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
134
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
135
+
136
+ ### Model Labels
137
+ | Label | Examples |
138
+ |:---------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
139
+ | positive | <ul><li>'Policy statement revised; IV antibiotic therapy is not medically necessary for uncomplicated cranial nerve palsy associated with Lyme disease and antibiotic-refractory Lyme arthritis\n7/19/2007: Reviewed and approved by MPAC\n7/10/2009: Policy reviewed, no changes\n12/15/2009: Coding Section revised with 2010 CPT4 and HCPCS revisions\n02/23/2011: Added the following to the policy statement: Determination of levels of the B lymphocyte chemoattractant CXCL13 for diagnosis or monitoring treatment is considered investigational. No changes to other policy statements. Removed deleted HCPCS codes J0530, J0540, and J0550 from the Code Reference section. 02/24/2012: Add the following policy statement: A single 2- to 4-week course of IV antibiotics may be considered medically necessary in patients with Lyme carditis, as evidenced by positive serologic findings (defined above) and associated with a high degree of atrioventricular block or a PR interval of greater than 0.3 second. Documentation of Lyme carditis may include PCR-based direct detection of B burgdorferi in the blood when results of serologic studies are equivocal.'</li><li>'It previously stated that determination of levels of the B lymphocyte chemoattractant CXCL13 for diagnosis or monitoring treatment is considered investigational. Deleted outdated references from the Sources section. 11/28/2012: Policy reviewed; no changes. 03/10/2014: Policy reviewed; no changes to policy statement. Removed deleted HCPCS codes J0560, J0570, and J0580 from the Code Reference section.'</li><li>'No changes to other policy statements. Removed deleted HCPCS codes J0530, J0540, and J0550 from the Code Reference section. 02/24/2012: Add the following policy statement: A single 2- to 4-week course of IV antibiotics may be considered medically necessary in patients with Lyme carditis, as evidenced by positive serologic findings (defined above) and associated with a high degree of atrioventricular block or a PR interval of greater than 0.3 second. Documentation of Lyme carditis may include PCR-based direct detection of B burgdorferi in the blood when results of serologic studies are equivocal. The last policy statement was revised to state that other diagnostic testing is considered investigational including but not limited to C6 peptide ELISA or determination of levels of the B lymphocyte chemoattractant CXCL13 for diagnosis or monitoring treatment.'</li></ul> |
140
+ | negative | <ul><li>"Fido the Stamp is quite an innovative concept, blending pet ownership with personalized mailing. Many dog owners likely delight in the idea of featuring their pets' images on parcels. This personalization could make mailing feel more intimate and fun for both senders and recipients. However, one might wonder if everyone would want their pet's face plastered on every package they send. \n\nIt’s plausible that some users might find it amusing to enhance the mundane task of mailing with a dash of pet-inspired personality. Yet, others might feel that featuring their dog on a stamp diminishes the seriousness of the parcels they are sending. Fido the Stamp could also lead"</li><li>"Friedreich's ataxia, which presents with symptoms such as gait disturbances, tremors, and speech difficulties, is associated with mutations in the FXN gene. This condition involves GAA trinucleotide repeat expansions. The FXN gene is located on chromosome 9, specifically at the locus 9q21.11. Thus, chromosome 9 is most commonly associated with Friedreich's ataxia."</li><li>'The subdued July inflation figures indicate that consumer prices are not increasing rapidly, which usually boosts investor confidence in fixed-income securities like Treasuries. Likewise, soaring oil prices suggest that consumers may start cutting back on spending, leading to a cooling of the overall economy. This cooling effect can trigger a flight to safety among investors who prefer stable returns in uncertain times, causing an uptick in Treasury demand. Moreover, summer BBQs would probably be less popular if gas prices continue to rise, as people will likely prioritize their spending on essentials. However, a decrease in consumer spending could ironically lead to increased economic activity as consumers save money instead of spending it'</li></ul> |
141
+
142
+ ## Evaluation
143
+
144
+ ### Metrics
145
+ | Label | Accuracy |
146
+ |:--------|:---------|
147
+ | **all** | 1.0 |
148
+
149
+ ## Uses
150
+
151
+ ### Direct Use for Inference
152
+
153
+ First install the SetFit library:
154
+
155
+ ```bash
156
+ pip install setfit
157
+ ```
158
+
159
+ Then you can load this model and run inference.
160
+
161
+ ```python
162
+ from setfit import SetFitModel
163
+
164
+ # Download from the 🤗 Hub
165
+ model = SetFitModel.from_pretrained("ashercn97/code-y-v1")
166
+ # Run inference
167
+ preds = model("Given the symptoms described, the most likely karyotype for this 15-year-old boy is 47,XXY, which is characteristic of Klinefelter syndrome. The combination of decreased facial and pubic hair, gynecomastia, small testes, long extremities, and tall stature aligns with this chromosomal pattern. Klinefelter syndrome is caused by the presence of an extra X chromosome, leading to the 47,XXY karyotype.")
168
+ ```
169
+
170
+ <!--
171
+ ### Downstream Use
172
+
173
+ *List how someone could finetune this model on their own dataset.*
174
+ -->
175
+
176
+ <!--
177
+ ### Out-of-Scope Use
178
+
179
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
180
+ -->
181
+
182
+ <!--
183
+ ## Bias, Risks and Limitations
184
+
185
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
186
+ -->
187
+
188
+ <!--
189
+ ### Recommendations
190
+
191
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
192
+ -->
193
+
194
+ ## Training Details
195
+
196
+ ### Training Set Metrics
197
+ | Training set | Min | Median | Max |
198
+ |:-------------|:----|:-------|:----|
199
+ | Word count | 52 | 148.16 | 266 |
200
+
201
+ | Label | Training Sample Count |
202
+ |:---------|:----------------------|
203
+ | negative | 9 |
204
+ | positive | 16 |
205
+
206
+ ### Training Hyperparameters
207
+ - batch_size: (16, 16)
208
+ - num_epochs: (4, 4)
209
+ - max_steps: -1
210
+ - sampling_strategy: oversampling
211
+ - body_learning_rate: (2e-05, 1e-05)
212
+ - head_learning_rate: 0.01
213
+ - loss: CosineSimilarityLoss
214
+ - distance_metric: cosine_distance
215
+ - margin: 0.25
216
+ - end_to_end: False
217
+ - use_amp: False
218
+ - warmup_proportion: 0.1
219
+ - l2_weight: 0.01
220
+ - seed: 42
221
+ - eval_max_steps: -1
222
+ - load_best_model_at_end: True
223
+
224
+ ### Training Results
225
+ | Epoch | Step | Training Loss | Validation Loss |
226
+ |:------:|:----:|:-------------:|:---------------:|
227
+ | 0.0435 | 1 | 0.1928 | - |
228
+ | 1.0 | 23 | - | 0.0154 |
229
+ | 2.0 | 46 | - | 0.0023 |
230
+ | 2.1739 | 50 | 0.0214 | - |
231
+ | 3.0 | 69 | - | 0.0018 |
232
+ | 4.0 | 92 | - | 0.0015 |
233
+
234
+ ### Framework Versions
235
+ - Python: 3.11.10
236
+ - SetFit: 1.1.2
237
+ - Sentence Transformers: 4.0.2
238
+ - Transformers: 4.51.3
239
+ - PyTorch: 2.4.1+cu124
240
+ - Datasets: 3.5.0
241
+ - Tokenizers: 0.21.1
242
+
243
+ ## Citation
244
+
245
+ ### BibTeX
246
+ ```bibtex
247
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
248
+ doi = {10.48550/ARXIV.2209.11055},
249
+ url = {https://arxiv.org/abs/2209.11055},
250
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
251
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
252
+ title = {Efficient Few-Shot Learning Without Prompts},
253
+ publisher = {arXiv},
254
+ year = {2022},
255
+ copyright = {Creative Commons Attribution 4.0 International}
256
+ }
257
+ ```
258
+
259
+ <!--
260
+ ## Glossary
261
+
262
+ *Clearly define terms in order to be accessible across audiences.*
263
+ -->
264
+
265
+ <!--
266
+ ## Model Card Authors
267
+
268
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
269
+ -->
270
+
271
+ <!--
272
+ ## Model Card Contact
273
+
274
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
275
+ -->
config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MPNetModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-05,
14
+ "max_position_embeddings": 514,
15
+ "model_type": "mpnet",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 1,
19
+ "relative_attention_num_buckets": 32,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.51.3",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "4.0.2",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.4.1+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
config_setfit.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": [
3
+ "negative",
4
+ "positive"
5
+ ],
6
+ "normalize_embeddings": false
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff406fdf1471440e4ad9b4b49496f7f501d4a478010f4df5e7a296ccb524c3de
3
+ size 437967672
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bbc38c02f7a12e13822a2ca2b183a2f1952468a43e9ae43da72c41ba76e789d
3
+ size 7055
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,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
46
+ "cls_token": "<s>",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": true,
49
+ "eos_token": "</s>",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "model_max_length": 512,
53
+ "never_split": null,
54
+ "pad_token": "<pad>",
55
+ "sep_token": "</s>",
56
+ "strip_accents": null,
57
+ "tokenize_chinese_chars": true,
58
+ "tokenizer_class": "MPNetTokenizer",
59
+ "unk_token": "[UNK]"
60
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff