principalengineering commited on
Commit
89e444d
·
verified ·
1 Parent(s): 5f40ad8

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": 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,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:662
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: ProsusAI/finbert
11
+ widget:
12
+ - source_sentence: credit
13
+ sentences:
14
+ - credit_from_customer_for_wholesale_pharmaceuticals
15
+ - credit_from_customer_for_wholesale_electronics_purchase
16
+ - pos_debit_at_the_place_restaurant_(lunch)
17
+ - source_sentence: credit
18
+ sentences:
19
+ - transfer_to_adeola_bakery_for_corporate_cakes_for_staff
20
+ - payment_received_via_palmpay_for_graphic_design_work
21
+ - credit_from_customer_for_wholesale_cleaning_supplies
22
+ - source_sentence: credit
23
+ sentences:
24
+ - sunday_tithe_payment_-_the_elevation_church
25
+ - payment_for_professional_audit_service_-_kpmg
26
+ - nip_credit_from_customer_for_inv-0146_(courier_service)
27
+ - source_sentence: debit
28
+ sentences:
29
+ - payment_for_professional_research_service_-_intellectus
30
+ - dinner_at_zik's_place_(personal)
31
+ - web_pymt_to_google_play_for_app_purchase
32
+ - source_sentence: debit
33
+ sentences:
34
+ - purchase_of_office_stationery_-_b.o.s.s._(pos)
35
+ - fuel_purchase_at_oando_filling_station_-_company_car
36
+ - payment_for_new_employee_medical_test_-_synlab_nigeria
37
+ pipeline_tag: sentence-similarity
38
+ library_name: sentence-transformers
39
+ metrics:
40
+ - cosine_accuracy@1
41
+ - cosine_accuracy@3
42
+ - cosine_accuracy@5
43
+ - cosine_accuracy@10
44
+ - cosine_precision@1
45
+ - cosine_precision@3
46
+ - cosine_precision@5
47
+ - cosine_precision@10
48
+ - cosine_recall@1
49
+ - cosine_recall@3
50
+ - cosine_recall@5
51
+ - cosine_recall@10
52
+ - cosine_ndcg@10
53
+ - cosine_mrr@10
54
+ - cosine_map@100
55
+ model-index:
56
+ - name: SentenceTransformer based on ProsusAI/finbert
57
+ results:
58
+ - task:
59
+ type: information-retrieval
60
+ name: Information Retrieval
61
+ dataset:
62
+ name: task1 ir eval
63
+ type: task1_ir_eval
64
+ metrics:
65
+ - type: cosine_accuracy@1
66
+ value: 0.012048192771084338
67
+ name: Cosine Accuracy@1
68
+ - type: cosine_accuracy@3
69
+ value: 0.024096385542168676
70
+ name: Cosine Accuracy@3
71
+ - type: cosine_accuracy@5
72
+ value: 0.04819277108433735
73
+ name: Cosine Accuracy@5
74
+ - type: cosine_accuracy@10
75
+ value: 0.12048192771084337
76
+ name: Cosine Accuracy@10
77
+ - type: cosine_precision@1
78
+ value: 0.012048192771084338
79
+ name: Cosine Precision@1
80
+ - type: cosine_precision@3
81
+ value: 0.008032128514056224
82
+ name: Cosine Precision@3
83
+ - type: cosine_precision@5
84
+ value: 0.00963855421686747
85
+ name: Cosine Precision@5
86
+ - type: cosine_precision@10
87
+ value: 0.012048192771084338
88
+ name: Cosine Precision@10
89
+ - type: cosine_recall@1
90
+ value: 0.012048192771084338
91
+ name: Cosine Recall@1
92
+ - type: cosine_recall@3
93
+ value: 0.024096385542168676
94
+ name: Cosine Recall@3
95
+ - type: cosine_recall@5
96
+ value: 0.04819277108433735
97
+ name: Cosine Recall@5
98
+ - type: cosine_recall@10
99
+ value: 0.12048192771084337
100
+ name: Cosine Recall@10
101
+ - type: cosine_ndcg@10
102
+ value: 0.05290220236586545
103
+ name: Cosine Ndcg@10
104
+ - type: cosine_mrr@10
105
+ value: 0.033247274813539875
106
+ name: Cosine Mrr@10
107
+ - type: cosine_map@100
108
+ value: 0.058985241571287574
109
+ name: Cosine Map@100
110
+ ---
111
+
112
+ # SentenceTransformer based on ProsusAI/finbert
113
+
114
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert) on the csv dataset. 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.
115
+
116
+ ## Model Details
117
+
118
+ ### Model Description
119
+ - **Model Type:** Sentence Transformer
120
+ - **Base model:** [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert) <!-- at revision 4556d13015211d73dccd3fdd39d39232506f3e43 -->
121
+ - **Maximum Sequence Length:** 512 tokens
122
+ - **Output Dimensionality:** 768 dimensions
123
+ - **Similarity Function:** Cosine Similarity
124
+ - **Training Dataset:**
125
+ - csv
126
+ <!-- - **Language:** Unknown -->
127
+ <!-- - **License:** Unknown -->
128
+
129
+ ### Model Sources
130
+
131
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
132
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
133
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
134
+
135
+ ### Full Model Architecture
136
+
137
+ ```
138
+ SentenceTransformer(
139
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
140
+ (1): Pooling({'word_embedding_dimension': 768, '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})
141
+ )
142
+ ```
143
+
144
+ ## Usage
145
+
146
+ ### Direct Usage (Sentence Transformers)
147
+
148
+ First install the Sentence Transformers library:
149
+
150
+ ```bash
151
+ pip install -U sentence-transformers
152
+ ```
153
+
154
+ Then you can load this model and run inference.
155
+ ```python
156
+ from sentence_transformers import SentenceTransformer
157
+
158
+ # Download from the 🤗 Hub
159
+ model = SentenceTransformer("taxstreem/numens-finbert")
160
+ # Run inference
161
+ sentences = [
162
+ 'debit',
163
+ 'fuel_purchase_at_oando_filling_station_-_company_car',
164
+ 'purchase_of_office_stationery_-_b.o.s.s._(pos)',
165
+ ]
166
+ embeddings = model.encode(sentences)
167
+ print(embeddings.shape)
168
+ # [3, 768]
169
+
170
+ # Get the similarity scores for the embeddings
171
+ similarities = model.similarity(embeddings, embeddings)
172
+ print(similarities)
173
+ # tensor([[1.0000, 0.9331, 0.9395],
174
+ # [0.9331, 1.0000, 0.9727],
175
+ # [0.9395, 0.9727, 1.0000]])
176
+ ```
177
+
178
+ <!--
179
+ ### Direct Usage (Transformers)
180
+
181
+ <details><summary>Click to see the direct usage in Transformers</summary>
182
+
183
+ </details>
184
+ -->
185
+
186
+ <!--
187
+ ### Downstream Usage (Sentence Transformers)
188
+
189
+ You can finetune this model on your own dataset.
190
+
191
+ <details><summary>Click to expand</summary>
192
+
193
+ </details>
194
+ -->
195
+
196
+ <!--
197
+ ### Out-of-Scope Use
198
+
199
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
200
+ -->
201
+
202
+ ## Evaluation
203
+
204
+ ### Metrics
205
+
206
+ #### Information Retrieval
207
+
208
+ * Dataset: `task1_ir_eval`
209
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
210
+
211
+ | Metric | Value |
212
+ |:--------------------|:-----------|
213
+ | cosine_accuracy@1 | 0.012 |
214
+ | cosine_accuracy@3 | 0.0241 |
215
+ | cosine_accuracy@5 | 0.0482 |
216
+ | cosine_accuracy@10 | 0.1205 |
217
+ | cosine_precision@1 | 0.012 |
218
+ | cosine_precision@3 | 0.008 |
219
+ | cosine_precision@5 | 0.0096 |
220
+ | cosine_precision@10 | 0.012 |
221
+ | cosine_recall@1 | 0.012 |
222
+ | cosine_recall@3 | 0.0241 |
223
+ | cosine_recall@5 | 0.0482 |
224
+ | cosine_recall@10 | 0.1205 |
225
+ | **cosine_ndcg@10** | **0.0529** |
226
+ | cosine_mrr@10 | 0.0332 |
227
+ | cosine_map@100 | 0.059 |
228
+
229
+ <!--
230
+ ## Bias, Risks and Limitations
231
+
232
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
233
+ -->
234
+
235
+ <!--
236
+ ### Recommendations
237
+
238
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
239
+ -->
240
+
241
+ ## Training Details
242
+
243
+ ### Training Dataset
244
+
245
+ #### csv
246
+
247
+ * Dataset: csv
248
+ * Size: 662 training samples
249
+ * Columns: <code>anchor</code> and <code>positive</code>
250
+ * Approximate statistics based on the first 662 samples:
251
+ | | anchor | positive |
252
+ |:--------|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
253
+ | type | string | string |
254
+ | details | <ul><li>min: 3 tokens</li><li>mean: 3.49 tokens</li><li>max: 4 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 18.69 tokens</li><li>max: 31 tokens</li></ul> |
255
+ * Samples:
256
+ | anchor | positive |
257
+ |:--------------------|:-----------------------------------------------------------------------------|
258
+ | <code>debit</code> | <code>petrol_purchase_at_mrs_filling_station</code> |
259
+ | <code>credit</code> | <code>credit_from_customer_for_rental_income_-_banana_island_property</code> |
260
+ | <code>debit</code> | <code>purchase_of_foreign_currency_(euro)_-_bdc_aboki</code> |
261
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
262
+ ```json
263
+ {
264
+ "scale": 20.0,
265
+ "similarity_fct": "cos_sim",
266
+ "gather_across_devices": false
267
+ }
268
+ ```
269
+
270
+ ### Evaluation Dataset
271
+
272
+ #### csv
273
+
274
+ * Dataset: csv
275
+ * Size: 83 evaluation samples
276
+ * Columns: <code>anchor</code> and <code>positive</code>
277
+ * Approximate statistics based on the first 83 samples:
278
+ | | anchor | positive |
279
+ |:--------|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
280
+ | type | string | string |
281
+ | details | <ul><li>min: 3 tokens</li><li>mean: 3.54 tokens</li><li>max: 4 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 18.67 tokens</li><li>max: 30 tokens</li></ul> |
282
+ * Samples:
283
+ | anchor | positive |
284
+ |:--------------------|:------------------------------------------------------------------|
285
+ | <code>debit</code> | <code>payment_for_website_design_service_-_creative_hub_ng</code> |
286
+ | <code>debit</code> | <code>pension_remittance_for_staff_-_stanbic_ibtc</code> |
287
+ | <code>credit</code> | <code>payment_received_via_palmpay_for_graphic_design_work</code> |
288
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
289
+ ```json
290
+ {
291
+ "scale": 20.0,
292
+ "similarity_fct": "cos_sim",
293
+ "gather_across_devices": false
294
+ }
295
+ ```
296
+
297
+ ### Training Hyperparameters
298
+ #### Non-Default Hyperparameters
299
+
300
+ - `eval_strategy`: steps
301
+ - `per_device_train_batch_size`: 32
302
+ - `per_device_eval_batch_size`: 32
303
+ - `num_train_epochs`: 4
304
+ - `warmup_ratio`: 0.1
305
+
306
+ #### All Hyperparameters
307
+ <details><summary>Click to expand</summary>
308
+
309
+ - `overwrite_output_dir`: False
310
+ - `do_predict`: False
311
+ - `eval_strategy`: steps
312
+ - `prediction_loss_only`: True
313
+ - `per_device_train_batch_size`: 32
314
+ - `per_device_eval_batch_size`: 32
315
+ - `per_gpu_train_batch_size`: None
316
+ - `per_gpu_eval_batch_size`: None
317
+ - `gradient_accumulation_steps`: 1
318
+ - `eval_accumulation_steps`: None
319
+ - `torch_empty_cache_steps`: None
320
+ - `learning_rate`: 5e-05
321
+ - `weight_decay`: 0.0
322
+ - `adam_beta1`: 0.9
323
+ - `adam_beta2`: 0.999
324
+ - `adam_epsilon`: 1e-08
325
+ - `max_grad_norm`: 1.0
326
+ - `num_train_epochs`: 4
327
+ - `max_steps`: -1
328
+ - `lr_scheduler_type`: linear
329
+ - `lr_scheduler_kwargs`: {}
330
+ - `warmup_ratio`: 0.1
331
+ - `warmup_steps`: 0
332
+ - `log_level`: passive
333
+ - `log_level_replica`: warning
334
+ - `log_on_each_node`: True
335
+ - `logging_nan_inf_filter`: True
336
+ - `save_safetensors`: True
337
+ - `save_on_each_node`: False
338
+ - `save_only_model`: False
339
+ - `restore_callback_states_from_checkpoint`: False
340
+ - `no_cuda`: False
341
+ - `use_cpu`: False
342
+ - `use_mps_device`: False
343
+ - `seed`: 42
344
+ - `data_seed`: None
345
+ - `jit_mode_eval`: False
346
+ - `bf16`: False
347
+ - `fp16`: False
348
+ - `fp16_opt_level`: O1
349
+ - `half_precision_backend`: auto
350
+ - `bf16_full_eval`: False
351
+ - `fp16_full_eval`: False
352
+ - `tf32`: None
353
+ - `local_rank`: 0
354
+ - `ddp_backend`: None
355
+ - `tpu_num_cores`: None
356
+ - `tpu_metrics_debug`: False
357
+ - `debug`: []
358
+ - `dataloader_drop_last`: False
359
+ - `dataloader_num_workers`: 0
360
+ - `dataloader_prefetch_factor`: None
361
+ - `past_index`: -1
362
+ - `disable_tqdm`: False
363
+ - `remove_unused_columns`: True
364
+ - `label_names`: None
365
+ - `load_best_model_at_end`: False
366
+ - `ignore_data_skip`: False
367
+ - `fsdp`: []
368
+ - `fsdp_min_num_params`: 0
369
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
370
+ - `fsdp_transformer_layer_cls_to_wrap`: None
371
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
372
+ - `parallelism_config`: None
373
+ - `deepspeed`: None
374
+ - `label_smoothing_factor`: 0.0
375
+ - `optim`: adamw_torch_fused
376
+ - `optim_args`: None
377
+ - `adafactor`: False
378
+ - `group_by_length`: False
379
+ - `length_column_name`: length
380
+ - `project`: huggingface
381
+ - `trackio_space_id`: trackio
382
+ - `ddp_find_unused_parameters`: None
383
+ - `ddp_bucket_cap_mb`: None
384
+ - `ddp_broadcast_buffers`: False
385
+ - `dataloader_pin_memory`: True
386
+ - `dataloader_persistent_workers`: False
387
+ - `skip_memory_metrics`: True
388
+ - `use_legacy_prediction_loop`: False
389
+ - `push_to_hub`: False
390
+ - `resume_from_checkpoint`: None
391
+ - `hub_model_id`: None
392
+ - `hub_strategy`: every_save
393
+ - `hub_private_repo`: None
394
+ - `hub_always_push`: False
395
+ - `hub_revision`: None
396
+ - `gradient_checkpointing`: False
397
+ - `gradient_checkpointing_kwargs`: None
398
+ - `include_inputs_for_metrics`: False
399
+ - `include_for_metrics`: []
400
+ - `eval_do_concat_batches`: True
401
+ - `fp16_backend`: auto
402
+ - `push_to_hub_model_id`: None
403
+ - `push_to_hub_organization`: None
404
+ - `mp_parameters`:
405
+ - `auto_find_batch_size`: False
406
+ - `full_determinism`: False
407
+ - `torchdynamo`: None
408
+ - `ray_scope`: last
409
+ - `ddp_timeout`: 1800
410
+ - `torch_compile`: False
411
+ - `torch_compile_backend`: None
412
+ - `torch_compile_mode`: None
413
+ - `include_tokens_per_second`: False
414
+ - `include_num_input_tokens_seen`: no
415
+ - `neftune_noise_alpha`: None
416
+ - `optim_target_modules`: None
417
+ - `batch_eval_metrics`: False
418
+ - `eval_on_start`: False
419
+ - `use_liger_kernel`: False
420
+ - `liger_kernel_config`: None
421
+ - `eval_use_gather_object`: False
422
+ - `average_tokens_across_devices`: True
423
+ - `prompts`: None
424
+ - `batch_sampler`: batch_sampler
425
+ - `multi_dataset_batch_sampler`: proportional
426
+ - `router_mapping`: {}
427
+ - `learning_rate_mapping`: {}
428
+
429
+ </details>
430
+
431
+ ### Training Logs
432
+ | Epoch | Step | task1_ir_eval_cosine_ndcg@10 |
433
+ |:-----:|:----:|:----------------------------:|
434
+ | -1 | -1 | 0.0529 |
435
+
436
+
437
+ ### Framework Versions
438
+ - Python: 3.10.19
439
+ - Sentence Transformers: 5.1.2
440
+ - Transformers: 4.57.1
441
+ - PyTorch: 2.9.1+cu128
442
+ - Accelerate: 1.11.0
443
+ - Datasets: 4.4.1
444
+ - Tokenizers: 0.22.1
445
+
446
+ ## Citation
447
+
448
+ ### BibTeX
449
+
450
+ #### Sentence Transformers
451
+ ```bibtex
452
+ @inproceedings{reimers-2019-sentence-bert,
453
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
454
+ author = "Reimers, Nils and Gurevych, Iryna",
455
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
456
+ month = "11",
457
+ year = "2019",
458
+ publisher = "Association for Computational Linguistics",
459
+ url = "https://arxiv.org/abs/1908.10084",
460
+ }
461
+ ```
462
+
463
+ #### MultipleNegativesRankingLoss
464
+ ```bibtex
465
+ @misc{henderson2017efficient,
466
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
467
+ 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},
468
+ year={2017},
469
+ eprint={1705.00652},
470
+ archivePrefix={arXiv},
471
+ primaryClass={cs.CL}
472
+ }
473
+ ```
474
+
475
+ <!--
476
+ ## Glossary
477
+
478
+ *Clearly define terms in order to be accessible across audiences.*
479
+ -->
480
+
481
+ <!--
482
+ ## Model Card Authors
483
+
484
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
485
+ -->
486
+
487
+ <!--
488
+ ## Model Card Contact
489
+
490
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
491
+ -->
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "id2label": {
13
+ "0": "positive",
14
+ "1": "negative",
15
+ "2": "neutral"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "negative": 1,
21
+ "neutral": 2,
22
+ "positive": 0
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "bert",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "transformers_version": "4.57.1",
32
+ "type_vocab_size": 2,
33
+ "use_cache": true,
34
+ "vocab_size": 30522
35
+ }
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.9.1+cu128"
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:10944327549af30f569c0f16a3e8c2435e926635398d86330780391328af4def
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,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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
+ "mask_token": "[MASK]",
50
+ "max_length": 512,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
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
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff