Stevenf232 commited on
Commit
a1d0a6b
·
verified ·
1 Parent(s): cd22b7d

Add new SentenceTransformer 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,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:13270
9
+ - loss:ContrastiveLoss
10
+ base_model: cambridgeltl/SapBERT-from-PubMedBERT-fulltext
11
+ widget:
12
+ - source_sentence: PGE2
13
+ sentences:
14
+ - Dinoprostone
15
+ - Cardiovascular Diseases
16
+ - Seizures
17
+ - source_sentence: heparin
18
+ sentences:
19
+ - Heart Failure
20
+ - Hyperalgesia
21
+ - Heparin
22
+ - source_sentence: bipolar mania
23
+ sentences:
24
+ - Mood Disorders
25
+ - Serotonin
26
+ - Bipolar Disorder
27
+ - source_sentence: cardiac arrhythmia
28
+ sentences:
29
+ - Acquired Immunodeficiency Syndrome
30
+ - Arrhythmias, Cardiac
31
+ - Hyperemia
32
+ - source_sentence: pulmonary hypertension
33
+ sentences:
34
+ - Hypertension, Pulmonary
35
+ - cabergoline
36
+ - Neuroleptic Malignant Syndrome
37
+ pipeline_tag: sentence-similarity
38
+ library_name: sentence-transformers
39
+ ---
40
+
41
+ # SentenceTransformer based on cambridgeltl/SapBERT-from-PubMedBERT-fulltext
42
+
43
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [cambridgeltl/SapBERT-from-PubMedBERT-fulltext](https://huggingface.co/cambridgeltl/SapBERT-from-PubMedBERT-fulltext). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
44
+
45
+ ## Model Details
46
+
47
+ ### Model Description
48
+ - **Model Type:** Sentence Transformer
49
+ - **Base model:** [cambridgeltl/SapBERT-from-PubMedBERT-fulltext](https://huggingface.co/cambridgeltl/SapBERT-from-PubMedBERT-fulltext) <!-- at revision 090663c3ae57bf35ffe4d0d468a2a88d03051a4d -->
50
+ - **Maximum Sequence Length:** 512 tokens
51
+ - **Output Dimensionality:** 768 dimensions
52
+ - **Similarity Function:** Cosine Similarity
53
+ <!-- - **Training Dataset:** Unknown -->
54
+ <!-- - **Language:** Unknown -->
55
+ <!-- - **License:** Unknown -->
56
+
57
+ ### Model Sources
58
+
59
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
60
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
61
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
62
+
63
+ ### Full Model Architecture
64
+
65
+ ```
66
+ SentenceTransformer(
67
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
68
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
69
+ )
70
+ ```
71
+
72
+ ## Usage
73
+
74
+ ### Direct Usage (Sentence Transformers)
75
+
76
+ First install the Sentence Transformers library:
77
+
78
+ ```bash
79
+ pip install -U sentence-transformers
80
+ ```
81
+
82
+ Then you can load this model and run inference.
83
+ ```python
84
+ from sentence_transformers import SentenceTransformer
85
+
86
+ # Download from the 🤗 Hub
87
+ model = SentenceTransformer("Stevenf232/fine-tuned-SapBERT4")
88
+ # Run inference
89
+ sentences = [
90
+ 'pulmonary hypertension',
91
+ 'Hypertension, Pulmonary',
92
+ 'Neuroleptic Malignant Syndrome',
93
+ ]
94
+ embeddings = model.encode(sentences)
95
+ print(embeddings.shape)
96
+ # [3, 768]
97
+
98
+ # Get the similarity scores for the embeddings
99
+ similarities = model.similarity(embeddings, embeddings)
100
+ print(similarities)
101
+ # tensor([[1.0000, 0.9967, 0.4133],
102
+ # [0.9967, 1.0000, 0.4165],
103
+ # [0.4133, 0.4165, 1.0000]])
104
+ ```
105
+
106
+ <!--
107
+ ### Direct Usage (Transformers)
108
+
109
+ <details><summary>Click to see the direct usage in Transformers</summary>
110
+
111
+ </details>
112
+ -->
113
+
114
+ <!--
115
+ ### Downstream Usage (Sentence Transformers)
116
+
117
+ You can finetune this model on your own dataset.
118
+
119
+ <details><summary>Click to expand</summary>
120
+
121
+ </details>
122
+ -->
123
+
124
+ <!--
125
+ ### Out-of-Scope Use
126
+
127
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
128
+ -->
129
+
130
+ <!--
131
+ ## Bias, Risks and Limitations
132
+
133
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
134
+ -->
135
+
136
+ <!--
137
+ ### Recommendations
138
+
139
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
140
+ -->
141
+
142
+ ## Training Details
143
+
144
+ ### Training Dataset
145
+
146
+ #### Unnamed Dataset
147
+
148
+ * Size: 13,270 training samples
149
+ * Columns: <code>mention</code>, <code>entity</code>, and <code>label</code>
150
+ * Approximate statistics based on the first 1000 samples:
151
+ | | mention | entity | label |
152
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------|
153
+ | type | string | string | int |
154
+ | details | <ul><li>min: 3 tokens</li><li>mean: 4.88 tokens</li><li>max: 39 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 4.97 tokens</li><li>max: 36 tokens</li></ul> | <ul><li>1: 100.00%</li></ul> |
155
+ * Samples:
156
+ | mention | entity | label |
157
+ |:------------------------------------------|:-----------------------------------|:---------------|
158
+ | <code>human immunodeficiency virus</code> | <code>HIV Infections</code> | <code>1</code> |
159
+ | <code>non-Hodgkin's lymphoma</code> | <code>Lymphoma, Non-Hodgkin</code> | <code>1</code> |
160
+ | <code>renal cell carsinom</code> | <code>Carcinoma, Renal Cell</code> | <code>1</code> |
161
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
162
+ ```json
163
+ {
164
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
165
+ "margin": 0.5,
166
+ "size_average": true
167
+ }
168
+ ```
169
+
170
+ ### Evaluation Dataset
171
+
172
+ #### Unnamed Dataset
173
+
174
+ * Size: 12,795 evaluation samples
175
+ * Columns: <code>mention</code>, <code>entity</code>, and <code>label</code>
176
+ * Approximate statistics based on the first 1000 samples:
177
+ | | mention | entity | label |
178
+ |:--------|:--------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:-----------------------------|
179
+ | type | string | string | int |
180
+ | details | <ul><li>min: 3 tokens</li><li>mean: 4.7 tokens</li><li>max: 31 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 4.99 tokens</li><li>max: 41 tokens</li></ul> | <ul><li>1: 100.00%</li></ul> |
181
+ * Samples:
182
+ | mention | entity | label |
183
+ |:-----------------------------------|:-----------------------------------|:---------------|
184
+ | <code>Postoperative myalgia</code> | <code>Pain, Postoperative</code> | <code>1</code> |
185
+ | <code>blood loss</code> | <code>Postpartum Hemorrhage</code> | <code>1</code> |
186
+ | <code>urethane</code> | <code>Urethane</code> | <code>1</code> |
187
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
188
+ ```json
189
+ {
190
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
191
+ "margin": 0.5,
192
+ "size_average": true
193
+ }
194
+ ```
195
+
196
+ ### Training Hyperparameters
197
+ #### Non-Default Hyperparameters
198
+
199
+ - `learning_rate`: 1e-05
200
+ - `optim`: adamw_torch
201
+
202
+ #### All Hyperparameters
203
+ <details><summary>Click to expand</summary>
204
+
205
+ - `overwrite_output_dir`: False
206
+ - `do_predict`: False
207
+ - `eval_strategy`: no
208
+ - `prediction_loss_only`: True
209
+ - `per_device_train_batch_size`: 8
210
+ - `per_device_eval_batch_size`: 8
211
+ - `per_gpu_train_batch_size`: None
212
+ - `per_gpu_eval_batch_size`: None
213
+ - `gradient_accumulation_steps`: 1
214
+ - `eval_accumulation_steps`: None
215
+ - `torch_empty_cache_steps`: None
216
+ - `learning_rate`: 1e-05
217
+ - `weight_decay`: 0.0
218
+ - `adam_beta1`: 0.9
219
+ - `adam_beta2`: 0.999
220
+ - `adam_epsilon`: 1e-08
221
+ - `max_grad_norm`: 1.0
222
+ - `num_train_epochs`: 3
223
+ - `max_steps`: -1
224
+ - `lr_scheduler_type`: linear
225
+ - `lr_scheduler_kwargs`: {}
226
+ - `warmup_ratio`: 0.0
227
+ - `warmup_steps`: 0
228
+ - `log_level`: passive
229
+ - `log_level_replica`: warning
230
+ - `log_on_each_node`: True
231
+ - `logging_nan_inf_filter`: True
232
+ - `save_safetensors`: True
233
+ - `save_on_each_node`: False
234
+ - `save_only_model`: False
235
+ - `restore_callback_states_from_checkpoint`: False
236
+ - `no_cuda`: False
237
+ - `use_cpu`: False
238
+ - `use_mps_device`: False
239
+ - `seed`: 42
240
+ - `data_seed`: None
241
+ - `jit_mode_eval`: False
242
+ - `bf16`: False
243
+ - `fp16`: False
244
+ - `fp16_opt_level`: O1
245
+ - `half_precision_backend`: auto
246
+ - `bf16_full_eval`: False
247
+ - `fp16_full_eval`: False
248
+ - `tf32`: None
249
+ - `local_rank`: 0
250
+ - `ddp_backend`: None
251
+ - `tpu_num_cores`: None
252
+ - `tpu_metrics_debug`: False
253
+ - `debug`: []
254
+ - `dataloader_drop_last`: False
255
+ - `dataloader_num_workers`: 0
256
+ - `dataloader_prefetch_factor`: None
257
+ - `past_index`: -1
258
+ - `disable_tqdm`: False
259
+ - `remove_unused_columns`: True
260
+ - `label_names`: None
261
+ - `load_best_model_at_end`: False
262
+ - `ignore_data_skip`: False
263
+ - `fsdp`: []
264
+ - `fsdp_min_num_params`: 0
265
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
266
+ - `fsdp_transformer_layer_cls_to_wrap`: None
267
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
268
+ - `parallelism_config`: None
269
+ - `deepspeed`: None
270
+ - `label_smoothing_factor`: 0.0
271
+ - `optim`: adamw_torch
272
+ - `optim_args`: None
273
+ - `adafactor`: False
274
+ - `group_by_length`: False
275
+ - `length_column_name`: length
276
+ - `project`: huggingface
277
+ - `trackio_space_id`: trackio
278
+ - `ddp_find_unused_parameters`: None
279
+ - `ddp_bucket_cap_mb`: None
280
+ - `ddp_broadcast_buffers`: False
281
+ - `dataloader_pin_memory`: True
282
+ - `dataloader_persistent_workers`: False
283
+ - `skip_memory_metrics`: True
284
+ - `use_legacy_prediction_loop`: False
285
+ - `push_to_hub`: False
286
+ - `resume_from_checkpoint`: None
287
+ - `hub_model_id`: None
288
+ - `hub_strategy`: every_save
289
+ - `hub_private_repo`: None
290
+ - `hub_always_push`: False
291
+ - `hub_revision`: None
292
+ - `gradient_checkpointing`: False
293
+ - `gradient_checkpointing_kwargs`: None
294
+ - `include_inputs_for_metrics`: False
295
+ - `include_for_metrics`: []
296
+ - `eval_do_concat_batches`: True
297
+ - `fp16_backend`: auto
298
+ - `push_to_hub_model_id`: None
299
+ - `push_to_hub_organization`: None
300
+ - `mp_parameters`:
301
+ - `auto_find_batch_size`: False
302
+ - `full_determinism`: False
303
+ - `torchdynamo`: None
304
+ - `ray_scope`: last
305
+ - `ddp_timeout`: 1800
306
+ - `torch_compile`: False
307
+ - `torch_compile_backend`: None
308
+ - `torch_compile_mode`: None
309
+ - `include_tokens_per_second`: False
310
+ - `include_num_input_tokens_seen`: no
311
+ - `neftune_noise_alpha`: None
312
+ - `optim_target_modules`: None
313
+ - `batch_eval_metrics`: False
314
+ - `eval_on_start`: False
315
+ - `use_liger_kernel`: False
316
+ - `liger_kernel_config`: None
317
+ - `eval_use_gather_object`: False
318
+ - `average_tokens_across_devices`: True
319
+ - `prompts`: None
320
+ - `batch_sampler`: batch_sampler
321
+ - `multi_dataset_batch_sampler`: proportional
322
+ - `router_mapping`: {}
323
+ - `learning_rate_mapping`: {}
324
+
325
+ </details>
326
+
327
+ ### Training Logs
328
+ | Epoch | Step | Training Loss |
329
+ |:------:|:----:|:-------------:|
330
+ | 0.3014 | 500 | 0.0042 |
331
+ | 0.6028 | 1000 | 0.0034 |
332
+ | 0.9042 | 1500 | 0.0032 |
333
+ | 1.2055 | 2000 | 0.0022 |
334
+ | 1.5069 | 2500 | 0.002 |
335
+ | 1.8083 | 3000 | 0.0023 |
336
+ | 2.1097 | 3500 | 0.0019 |
337
+ | 2.4111 | 4000 | 0.0017 |
338
+ | 2.7125 | 4500 | 0.0018 |
339
+
340
+
341
+ ### Framework Versions
342
+ - Python: 3.12.12
343
+ - Sentence Transformers: 5.1.2
344
+ - Transformers: 4.57.1
345
+ - PyTorch: 2.8.0+cu126
346
+ - Accelerate: 1.11.0
347
+ - Datasets: 4.0.0
348
+ - Tokenizers: 0.22.1
349
+
350
+ ## Citation
351
+
352
+ ### BibTeX
353
+
354
+ #### Sentence Transformers
355
+ ```bibtex
356
+ @inproceedings{reimers-2019-sentence-bert,
357
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
358
+ author = "Reimers, Nils and Gurevych, Iryna",
359
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
360
+ month = "11",
361
+ year = "2019",
362
+ publisher = "Association for Computational Linguistics",
363
+ url = "https://arxiv.org/abs/1908.10084",
364
+ }
365
+ ```
366
+
367
+ #### ContrastiveLoss
368
+ ```bibtex
369
+ @inproceedings{hadsell2006dimensionality,
370
+ author={Hadsell, R. and Chopra, S. and LeCun, Y.},
371
+ booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
372
+ title={Dimensionality Reduction by Learning an Invariant Mapping},
373
+ year={2006},
374
+ volume={2},
375
+ number={},
376
+ pages={1735-1742},
377
+ doi={10.1109/CVPR.2006.100}
378
+ }
379
+ ```
380
+
381
+ <!--
382
+ ## Glossary
383
+
384
+ *Clearly define terms in order to be accessible across audiences.*
385
+ -->
386
+
387
+ <!--
388
+ ## Model Card Authors
389
+
390
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
391
+ -->
392
+
393
+ <!--
394
+ ## Model Card Contact
395
+
396
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
397
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
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-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "transformers_version": "4.57.1",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.1.2",
5
+ "transformers": "4.57.1",
6
+ "pytorch": "2.8.0+cu126"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75273e0bcecc6995e33b6f3bbe2962f8acaa9e93c3641413f008f21a6e73a4aa
3
+ size 437951328
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,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
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": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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
+ "extra_special_tokens": {},
49
+ "full_tokenizer_file": null,
50
+ "mask_token": "[MASK]",
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "never_split": null,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "BertTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff