niltonseixas commited on
Commit
c15c1cc
·
verified ·
1 Parent(s): 433030b

Upload 11 files

Browse files

Portuguese sentence transformer

.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ unigram.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
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,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:1404
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
10
+ widget:
11
+ - source_sentence: '"Seria o mesmo que dizer que ''eu vejo o que como'' é o mesmo
12
+ que ''eu como o que vejo''!'
13
+ sentences:
14
+ - Pois veja tantas coisas fora do rumo tinham acontecido ultimamente que Alice começou
15
+ a pensar que poucas coisas eram realmente impossíveis
16
+ - Primeiro porque eu estou do mesmo lado da porta que você; segundo porque eles
17
+ estão fazendo tal barulho dentro que virtualmente ninguém conseguiria ouvir você"
18
+ - '"Seria o mesmo que dizer que ''eu vejo o que como'' é o mesmo que ''eu como o
19
+ que vejo''!'
20
+ - source_sentence: A cozinheira jogou uma frigideira nela enquanto ela saia, mas esta
21
+ não a acertou.
22
+ sentences:
23
+ - '"Voces me deixam tonta." e depois, virando-se para a roseira ela continuou. "O
24
+ que vocês tem feito aqui?"'
25
+ - '"Não há nenhum", disse a Lebre de Março.'
26
+ - '"Não posso evitar", Alice disse docemente: "Estou crescendo".'
27
+ - source_sentence: '''O que será toda aquela coisa verde?'' disse Alice.'
28
+ sentences:
29
+ - '''É certamente longa'' disse Alice olhando com admiração para a cauda do Rato;[1]
30
+ ''mas por que você a chama de triste?'''
31
+ - 'Contudo primeiro ela esperou por alguns minutos para ver se iria diminuir ainda
32
+ mais: ela se sentiu um pouco nervosa quanto a isso; — "Eu poderia acabar você
33
+ sabe" Alice disse para si mesma —sumindo totalmente como uma vela'
34
+ - '''O que será toda aquela coisa verde?'' disse Alice'
35
+ - source_sentence: '"Não percebi bem," disse ela, tão educadamente como lhe foi possível.'
36
+ sentences:
37
+ - '"A Rainha vai ouvir-te!'
38
+ - '''Oh eu não sou exigente quanto ao tamanho'' respondeu Alice apressadamente;
39
+ ''apenas não se gosta de mudar tão frequentemente sabe'''
40
+ - '"Mas tudo é curioso hoje.'
41
+ - source_sentence: Contudo, finalmente ela esticou os braços dela em volta dele tão
42
+ longe quanto eles iam e partiu um pedaço da borda com cada mão.
43
+ sentences:
44
+ - Suponho que em seguida você me contará que nunca provou um ovo!'
45
+ - Os soldados fizeram silêncio, e olharam para Alice, uma vez que a pergunta era
46
+ evidentemente dirigida a ela.
47
+ - 'Felizmente para Alice, a garrafinha mágica tinha agora tido todo o seu efeito,
48
+ e ela não cresceu mais: todavia estava muito desconfortável, e, como não parecia
49
+ haver qualquer chance de ela algum dia sair do quarto de novo, não admira que
50
+ ela ficou triste.'
51
+ pipeline_tag: sentence-similarity
52
+ library_name: sentence-transformers
53
+ ---
54
+
55
+ # SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
56
+
57
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
58
+
59
+ ## Model Details
60
+
61
+ ### Model Description
62
+ - **Model Type:** Sentence Transformer
63
+ - **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision 86741b4e3f5cb7765a600d3a3d55a0f6a6cb443d -->
64
+ - **Maximum Sequence Length:** 128 tokens
65
+ - **Output Dimensionality:** 384 dimensions
66
+ - **Similarity Function:** Cosine Similarity
67
+ <!-- - **Training Dataset:** Unknown -->
68
+ <!-- - **Language:** Unknown -->
69
+ <!-- - **License:** Unknown -->
70
+
71
+ ### Model Sources
72
+
73
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
74
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
75
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
76
+
77
+ ### Full Model Architecture
78
+
79
+ ```
80
+ SentenceTransformer(
81
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: BertModel
82
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
83
+ )
84
+ ```
85
+
86
+ ## Usage
87
+
88
+ ### Direct Usage (Sentence Transformers)
89
+
90
+ First install the Sentence Transformers library:
91
+
92
+ ```bash
93
+ pip install -U sentence-transformers
94
+ ```
95
+
96
+ Then you can load this model and run inference.
97
+ ```python
98
+ from sentence_transformers import SentenceTransformer
99
+
100
+ # Download from the 🤗 Hub
101
+ model = SentenceTransformer("sentence_transformers_model_id")
102
+ # Run inference
103
+ sentences = [
104
+ 'Contudo, finalmente ela esticou os braços dela em volta dele tão longe quanto eles iam e partiu um pedaço da borda com cada mão.',
105
+ 'Os soldados fizeram silêncio, e olharam para Alice, uma vez que a pergunta era evidentemente dirigida a ela.',
106
+ "Suponho que em seguida você me contará que nunca provou um ovo!'",
107
+ ]
108
+ embeddings = model.encode(sentences)
109
+ print(embeddings.shape)
110
+ # [3, 384]
111
+
112
+ # Get the similarity scores for the embeddings
113
+ similarities = model.similarity(embeddings, embeddings)
114
+ print(similarities.shape)
115
+ # [3, 3]
116
+ ```
117
+
118
+ <!--
119
+ ### Direct Usage (Transformers)
120
+
121
+ <details><summary>Click to see the direct usage in Transformers</summary>
122
+
123
+ </details>
124
+ -->
125
+
126
+ <!--
127
+ ### Downstream Usage (Sentence Transformers)
128
+
129
+ You can finetune this model on your own dataset.
130
+
131
+ <details><summary>Click to expand</summary>
132
+
133
+ </details>
134
+ -->
135
+
136
+ <!--
137
+ ### Out-of-Scope Use
138
+
139
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
140
+ -->
141
+
142
+ <!--
143
+ ## Bias, Risks and Limitations
144
+
145
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
146
+ -->
147
+
148
+ <!--
149
+ ### Recommendations
150
+
151
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
152
+ -->
153
+
154
+ ## Training Details
155
+
156
+ ### Training Dataset
157
+
158
+ #### Unnamed Dataset
159
+
160
+ * Size: 1,404 training samples
161
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
162
+ * Approximate statistics based on the first 1000 samples:
163
+ | | sentence_0 | sentence_1 |
164
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
165
+ | type | string | string |
166
+ | details | <ul><li>min: 4 tokens</li><li>mean: 31.25 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 30.18 tokens</li><li>max: 128 tokens</li></ul> |
167
+ * Samples:
168
+ | sentence_0 | sentence_1 |
169
+ |:--------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
170
+ | <code>'Aqui!</code> | <code>"Era uma vez três pequenas irmãs," começou apressadamente o Arganaz; "cujos os seus nomes eram Elsie, Lacie e Tillie; e viviam no fundo de um poço--"</code> |
171
+ | <code>Então ela chamou-o com uma voz macia, - "Rato querido!</code> | <code>"Meu nome é Alice, prazer sua Majestade," disse Alice muito educadamente; mas acrescentou para si mesma, "Bem, eles são apenas um conjunto de cartas, apesar de tudo.</code> |
172
+ | <code>Estou certa de que não poderei!</code> | <code>Estou certa de que não poderei!</code> |
173
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
174
+ ```json
175
+ {
176
+ "scale": 20.0,
177
+ "similarity_fct": "cos_sim"
178
+ }
179
+ ```
180
+
181
+ ### Training Hyperparameters
182
+ #### Non-Default Hyperparameters
183
+
184
+ - `per_device_train_batch_size`: 16
185
+ - `per_device_eval_batch_size`: 16
186
+ - `num_train_epochs`: 100
187
+ - `multi_dataset_batch_sampler`: round_robin
188
+
189
+ #### All Hyperparameters
190
+ <details><summary>Click to expand</summary>
191
+
192
+ - `overwrite_output_dir`: False
193
+ - `do_predict`: False
194
+ - `eval_strategy`: no
195
+ - `prediction_loss_only`: True
196
+ - `per_device_train_batch_size`: 16
197
+ - `per_device_eval_batch_size`: 16
198
+ - `per_gpu_train_batch_size`: None
199
+ - `per_gpu_eval_batch_size`: None
200
+ - `gradient_accumulation_steps`: 1
201
+ - `eval_accumulation_steps`: None
202
+ - `torch_empty_cache_steps`: None
203
+ - `learning_rate`: 5e-05
204
+ - `weight_decay`: 0.0
205
+ - `adam_beta1`: 0.9
206
+ - `adam_beta2`: 0.999
207
+ - `adam_epsilon`: 1e-08
208
+ - `max_grad_norm`: 1
209
+ - `num_train_epochs`: 100
210
+ - `max_steps`: -1
211
+ - `lr_scheduler_type`: linear
212
+ - `lr_scheduler_kwargs`: {}
213
+ - `warmup_ratio`: 0.0
214
+ - `warmup_steps`: 0
215
+ - `log_level`: passive
216
+ - `log_level_replica`: warning
217
+ - `log_on_each_node`: True
218
+ - `logging_nan_inf_filter`: True
219
+ - `save_safetensors`: True
220
+ - `save_on_each_node`: False
221
+ - `save_only_model`: False
222
+ - `restore_callback_states_from_checkpoint`: False
223
+ - `no_cuda`: False
224
+ - `use_cpu`: False
225
+ - `use_mps_device`: False
226
+ - `seed`: 42
227
+ - `data_seed`: None
228
+ - `jit_mode_eval`: False
229
+ - `use_ipex`: False
230
+ - `bf16`: False
231
+ - `fp16`: False
232
+ - `fp16_opt_level`: O1
233
+ - `half_precision_backend`: auto
234
+ - `bf16_full_eval`: False
235
+ - `fp16_full_eval`: False
236
+ - `tf32`: None
237
+ - `local_rank`: 0
238
+ - `ddp_backend`: None
239
+ - `tpu_num_cores`: None
240
+ - `tpu_metrics_debug`: False
241
+ - `debug`: []
242
+ - `dataloader_drop_last`: False
243
+ - `dataloader_num_workers`: 0
244
+ - `dataloader_prefetch_factor`: None
245
+ - `past_index`: -1
246
+ - `disable_tqdm`: False
247
+ - `remove_unused_columns`: True
248
+ - `label_names`: None
249
+ - `load_best_model_at_end`: False
250
+ - `ignore_data_skip`: False
251
+ - `fsdp`: []
252
+ - `fsdp_min_num_params`: 0
253
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
254
+ - `fsdp_transformer_layer_cls_to_wrap`: None
255
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
256
+ - `deepspeed`: None
257
+ - `label_smoothing_factor`: 0.0
258
+ - `optim`: adamw_torch
259
+ - `optim_args`: None
260
+ - `adafactor`: False
261
+ - `group_by_length`: False
262
+ - `length_column_name`: length
263
+ - `ddp_find_unused_parameters`: None
264
+ - `ddp_bucket_cap_mb`: None
265
+ - `ddp_broadcast_buffers`: False
266
+ - `dataloader_pin_memory`: True
267
+ - `dataloader_persistent_workers`: False
268
+ - `skip_memory_metrics`: True
269
+ - `use_legacy_prediction_loop`: False
270
+ - `push_to_hub`: False
271
+ - `resume_from_checkpoint`: None
272
+ - `hub_model_id`: None
273
+ - `hub_strategy`: every_save
274
+ - `hub_private_repo`: None
275
+ - `hub_always_push`: False
276
+ - `gradient_checkpointing`: False
277
+ - `gradient_checkpointing_kwargs`: None
278
+ - `include_inputs_for_metrics`: False
279
+ - `include_for_metrics`: []
280
+ - `eval_do_concat_batches`: True
281
+ - `fp16_backend`: auto
282
+ - `push_to_hub_model_id`: None
283
+ - `push_to_hub_organization`: None
284
+ - `mp_parameters`:
285
+ - `auto_find_batch_size`: False
286
+ - `full_determinism`: False
287
+ - `torchdynamo`: None
288
+ - `ray_scope`: last
289
+ - `ddp_timeout`: 1800
290
+ - `torch_compile`: False
291
+ - `torch_compile_backend`: None
292
+ - `torch_compile_mode`: None
293
+ - `dispatch_batches`: None
294
+ - `split_batches`: None
295
+ - `include_tokens_per_second`: False
296
+ - `include_num_input_tokens_seen`: False
297
+ - `neftune_noise_alpha`: None
298
+ - `optim_target_modules`: None
299
+ - `batch_eval_metrics`: False
300
+ - `eval_on_start`: False
301
+ - `use_liger_kernel`: False
302
+ - `eval_use_gather_object`: False
303
+ - `average_tokens_across_devices`: False
304
+ - `prompts`: None
305
+ - `batch_sampler`: batch_sampler
306
+ - `multi_dataset_batch_sampler`: round_robin
307
+
308
+ </details>
309
+
310
+ ### Training Logs
311
+ | Epoch | Step | Training Loss |
312
+ |:-------:|:----:|:-------------:|
313
+ | 5.6818 | 500 | 2.4924 |
314
+ | 11.3636 | 1000 | 1.8033 |
315
+ | 17.0455 | 1500 | 1.3384 |
316
+ | 22.7273 | 2000 | 1.0531 |
317
+ | 28.4091 | 2500 | 0.7254 |
318
+ | 34.0909 | 3000 | 0.4252 |
319
+ | 39.7727 | 3500 | 0.2311 |
320
+ | 45.4545 | 4000 | 0.1372 |
321
+ | 51.1364 | 4500 | 0.0957 |
322
+ | 56.8182 | 5000 | 0.0798 |
323
+ | 62.5 | 5500 | 0.0562 |
324
+ | 68.1818 | 6000 | 0.0603 |
325
+ | 73.8636 | 6500 | 0.0399 |
326
+ | 79.5455 | 7000 | 0.0465 |
327
+ | 85.2273 | 7500 | 0.0462 |
328
+ | 90.9091 | 8000 | 0.0483 |
329
+ | 96.5909 | 8500 | 0.0379 |
330
+
331
+
332
+ ### Framework Versions
333
+ - Python: 3.9.19
334
+ - Sentence Transformers: 3.4.1
335
+ - Transformers: 4.49.0
336
+ - PyTorch: 2.6.0+cu124
337
+ - Accelerate: 1.4.0
338
+ - Datasets: 3.3.2
339
+ - Tokenizers: 0.21.0
340
+
341
+ ## Citation
342
+
343
+ ### BibTeX
344
+
345
+ #### Sentence Transformers
346
+ ```bibtex
347
+ @inproceedings{reimers-2019-sentence-bert,
348
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
349
+ author = "Reimers, Nils and Gurevych, Iryna",
350
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
351
+ month = "11",
352
+ year = "2019",
353
+ publisher = "Association for Computational Linguistics",
354
+ url = "https://arxiv.org/abs/1908.10084",
355
+ }
356
+ ```
357
+
358
+ #### MultipleNegativesRankingLoss
359
+ ```bibtex
360
+ @misc{henderson2017efficient,
361
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
362
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
363
+ year={2017},
364
+ eprint={1705.00652},
365
+ archivePrefix={arXiv},
366
+ primaryClass={cs.CL}
367
+ }
368
+ ```
369
+
370
+ <!--
371
+ ## Glossary
372
+
373
+ *Clearly define terms in order to be accessible across audiences.*
374
+ -->
375
+
376
+ <!--
377
+ ## Model Card Authors
378
+
379
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
380
+ -->
381
+
382
+ <!--
383
+ ## Model Card Contact
384
+
385
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
386
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
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": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
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
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.49.0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 250037
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.49.0",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd37b9e1e864eec4745571fb04fb69c7483746416110d716abd89c28b0dac149
3
+ size 470637416
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": 128,
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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
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_lower_case": true,
48
+ "eos_token": "</s>",
49
+ "extra_special_tokens": {},
50
+ "mask_token": "<mask>",
51
+ "max_length": 128,
52
+ "model_max_length": 128,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "<unk>"
65
+ }
unigram.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
3
+ size 14763260