Add SetFit ABSA model
Browse files- 1_Pooling/config.json +10 -0
- README.md +473 -0
- config.json +26 -0
- config_sentence_transformers.json +10 -0
- config_setfit.json +9 -0
- model.safetensors +3 -0
- model_head.pkl +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +64 -0
- vocab.txt +0 -0
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,473 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: setfit
|
| 3 |
+
tags:
|
| 4 |
+
- setfit
|
| 5 |
+
- absa
|
| 6 |
+
- sentence-transformers
|
| 7 |
+
- text-classification
|
| 8 |
+
- generated_from_setfit_trainer
|
| 9 |
+
base_model: sentence-transformers/all-MiniLM-L6-v2
|
| 10 |
+
metrics:
|
| 11 |
+
- accuracy
|
| 12 |
+
widget:
|
| 13 |
+
- text: hp:game yg grafiknya standar boros batrai bikin hp cepat panas game satunya
|
| 14 |
+
brawlstar ga
|
| 15 |
+
- text: game:game cocok indonesia gw main game dibilang berat squad buster jaringan
|
| 16 |
+
game berat bagus squad buster main koneksi terputus koneksi aman aman aja mohon
|
| 17 |
+
perbaiki jaringan
|
| 18 |
+
- text: sinyal:prmainannya bagus sinyal diperbaiki maen game online gak bagus2 aja
|
| 19 |
+
pingnya eh maen squad busters jaringannya hilang2 pas match klok sinyal udah hilang
|
| 20 |
+
masuk tulisan server konek muat ulang gak masuk in game saran tolong diperbaiki
|
| 21 |
+
ya min klok grafik gameplay udah bagus
|
| 22 |
+
- text: saran semoga game:gamenya bagus kendala game nya kadang kadang suka jaringan
|
| 23 |
+
jaringan bagus saran semoga game nya ditingkatkan disaat update
|
| 24 |
+
- text: gameplay:gameplay nya bagus gk match nya optimal main kadang suka lag gitu
|
| 25 |
+
sinyal nya bagus tolong supercell perbaiki sinyal
|
| 26 |
+
pipeline_tag: text-classification
|
| 27 |
+
inference: false
|
| 28 |
+
model-index:
|
| 29 |
+
- name: SetFit Aspect Model with sentence-transformers/all-MiniLM-L6-v2
|
| 30 |
+
results:
|
| 31 |
+
- task:
|
| 32 |
+
type: text-classification
|
| 33 |
+
name: Text Classification
|
| 34 |
+
dataset:
|
| 35 |
+
name: Unknown
|
| 36 |
+
type: unknown
|
| 37 |
+
split: test
|
| 38 |
+
metrics:
|
| 39 |
+
- type: accuracy
|
| 40 |
+
value: 0.8316929133858267
|
| 41 |
+
name: Accuracy
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
# SetFit Aspect Model with sentence-transformers/all-MiniLM-L6-v2
|
| 45 |
+
|
| 46 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Aspect Based Sentiment Analysis (ABSA). This SetFit model uses [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-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. In particular, this model is in charge of filtering aspect span candidates.
|
| 47 |
+
|
| 48 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
| 49 |
+
|
| 50 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 51 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
| 52 |
+
|
| 53 |
+
This model was trained within the context of a larger system for ABSA, which looks like so:
|
| 54 |
+
|
| 55 |
+
1. Use a spaCy model to select possible aspect span candidates.
|
| 56 |
+
2. **Use this SetFit model to filter these possible aspect span candidates.**
|
| 57 |
+
3. Use a SetFit model to classify the filtered aspect span candidates.
|
| 58 |
+
|
| 59 |
+
## Model Details
|
| 60 |
+
|
| 61 |
+
### Model Description
|
| 62 |
+
- **Model Type:** SetFit
|
| 63 |
+
- **Sentence Transformer body:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)
|
| 64 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
| 65 |
+
- **spaCy Model:** id_core_news_trf
|
| 66 |
+
- **SetFitABSA Aspect Model:** [Funnyworld1412/ABSA_mpnet_MiniLM-L6-aspect](https://huggingface.co/Funnyworld1412/ABSA_mpnet_MiniLM-L6-aspect)
|
| 67 |
+
- **SetFitABSA Polarity Model:** [Funnyworld1412/ABSA_mpnet_MiniLM-L6-polarity](https://huggingface.co/Funnyworld1412/ABSA_mpnet_MiniLM-L6-polarity)
|
| 68 |
+
- **Maximum Sequence Length:** 256 tokens
|
| 69 |
+
- **Number of Classes:** 2 classes
|
| 70 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
| 71 |
+
<!-- - **Language:** Unknown -->
|
| 72 |
+
<!-- - **License:** Unknown -->
|
| 73 |
+
|
| 74 |
+
### Model Sources
|
| 75 |
+
|
| 76 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
| 77 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
| 78 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
| 79 |
+
|
| 80 |
+
### Model Labels
|
| 81 |
+
| Label | Examples |
|
| 82 |
+
|:----------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 83 |
+
| aspect | <ul><li>'pencarian lawan:kapada supercell game nya bagus seru tolong diperbaiki pencarian lawan bermain ketemu player trophy mahkotanya jaraknya dapet berpengaruh peleton akun perbedaan level'</li><li>'game:kapada supercell game nya bagus seru tolong diperbaiki pencarian lawan bermain ketemu player trophy mahkotanya jaraknya dapet berpengaruh peleton akun perbedaan level'</li><li>'bugnya:bugnya nakal banget y coc cr aja sukanya ngebug pas match suka hitam match relog kalo udah relog lawan udah 1 2 mahkota kecewa sih bintang nya 1 aja bug nya diurus bintang lawannya kadang g setara levelnya dahlah gk suka banget kalo main 2 vs 2 temen suka banget afk coba fitur report'</li></ul> |
|
| 84 |
+
| no aspect | <ul><li>'player trophy mahkotanya jaraknya:kapada supercell game nya bagus seru tolong diperbaiki pencarian lawan bermain ketemu player trophy mahkotanya jaraknya dapet berpengaruh peleton akun perbedaan level'</li><li>'peleton akun perbedaan level:kapada supercell game nya bagus seru tolong diperbaiki pencarian lawan bermain ketemu player trophy mahkotanya jaraknya dapet berpengaruh peleton akun perbedaan level'</li><li>'y coc cr:bugnya nakal banget y coc cr aja sukanya ngebug pas match suka hitam match relog kalo udah relog lawan udah 1 2 mahkota kecewa sih bintang nya 1 aja bug nya diurus bintang lawannya kadang g setara levelnya dahlah gk suka banget kalo main 2 vs 2 temen suka banget afk coba fitur report'</li></ul> |
|
| 85 |
+
|
| 86 |
+
## Evaluation
|
| 87 |
+
|
| 88 |
+
### Metrics
|
| 89 |
+
| Label | Accuracy |
|
| 90 |
+
|:--------|:---------|
|
| 91 |
+
| **all** | 0.8317 |
|
| 92 |
+
|
| 93 |
+
## Uses
|
| 94 |
+
|
| 95 |
+
### Direct Use for Inference
|
| 96 |
+
|
| 97 |
+
First install the SetFit library:
|
| 98 |
+
|
| 99 |
+
```bash
|
| 100 |
+
pip install setfit
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
Then you can load this model and run inference.
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
from setfit import AbsaModel
|
| 107 |
+
|
| 108 |
+
# Download from the 🤗 Hub
|
| 109 |
+
model = AbsaModel.from_pretrained(
|
| 110 |
+
"Funnyworld1412/ABSA_mpnet_MiniLM-L6-aspect",
|
| 111 |
+
"Funnyworld1412/ABSA_mpnet_MiniLM-L6-polarity",
|
| 112 |
+
)
|
| 113 |
+
# Run inference
|
| 114 |
+
preds = model("The food was great, but the venue is just way too busy.")
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
<!--
|
| 118 |
+
### Downstream Use
|
| 119 |
+
|
| 120 |
+
*List how someone could finetune this model on their own dataset.*
|
| 121 |
+
-->
|
| 122 |
+
|
| 123 |
+
<!--
|
| 124 |
+
### Out-of-Scope Use
|
| 125 |
+
|
| 126 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 127 |
+
-->
|
| 128 |
+
|
| 129 |
+
<!--
|
| 130 |
+
## Bias, Risks and Limitations
|
| 131 |
+
|
| 132 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 133 |
+
-->
|
| 134 |
+
|
| 135 |
+
<!--
|
| 136 |
+
### Recommendations
|
| 137 |
+
|
| 138 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 139 |
+
-->
|
| 140 |
+
|
| 141 |
+
## Training Details
|
| 142 |
+
|
| 143 |
+
### Training Set Metrics
|
| 144 |
+
| Training set | Min | Median | Max |
|
| 145 |
+
|:-------------|:----|:--------|:----|
|
| 146 |
+
| Word count | 2 | 29.9357 | 80 |
|
| 147 |
+
|
| 148 |
+
| Label | Training Sample Count |
|
| 149 |
+
|:----------|:----------------------|
|
| 150 |
+
| no aspect | 3834 |
|
| 151 |
+
| aspect | 1266 |
|
| 152 |
+
|
| 153 |
+
### Training Hyperparameters
|
| 154 |
+
- batch_size: (4, 4)
|
| 155 |
+
- num_epochs: (1, 1)
|
| 156 |
+
- max_steps: -1
|
| 157 |
+
- sampling_strategy: oversampling
|
| 158 |
+
- num_iterations: 5
|
| 159 |
+
- body_learning_rate: (2e-05, 1e-05)
|
| 160 |
+
- head_learning_rate: 0.01
|
| 161 |
+
- loss: CosineSimilarityLoss
|
| 162 |
+
- distance_metric: cosine_distance
|
| 163 |
+
- margin: 0.25
|
| 164 |
+
- end_to_end: False
|
| 165 |
+
- use_amp: False
|
| 166 |
+
- warmup_proportion: 0.1
|
| 167 |
+
- seed: 42
|
| 168 |
+
- eval_max_steps: -1
|
| 169 |
+
- load_best_model_at_end: False
|
| 170 |
+
|
| 171 |
+
### Training Results
|
| 172 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 173 |
+
|:------:|:-----:|:-------------:|:---------------:|
|
| 174 |
+
| 0.0001 | 1 | 0.2801 | - |
|
| 175 |
+
| 0.0039 | 50 | 0.2365 | - |
|
| 176 |
+
| 0.0078 | 100 | 0.1068 | - |
|
| 177 |
+
| 0.0118 | 150 | 0.3401 | - |
|
| 178 |
+
| 0.0157 | 200 | 0.2112 | - |
|
| 179 |
+
| 0.0196 | 250 | 0.3529 | - |
|
| 180 |
+
| 0.0235 | 300 | 0.2338 | - |
|
| 181 |
+
| 0.0275 | 350 | 0.2039 | - |
|
| 182 |
+
| 0.0314 | 400 | 0.2006 | - |
|
| 183 |
+
| 0.0353 | 450 | 0.2939 | - |
|
| 184 |
+
| 0.0392 | 500 | 0.2053 | - |
|
| 185 |
+
| 0.0431 | 550 | 0.2036 | - |
|
| 186 |
+
| 0.0471 | 600 | 0.2229 | - |
|
| 187 |
+
| 0.0510 | 650 | 0.105 | - |
|
| 188 |
+
| 0.0549 | 700 | 0.2222 | - |
|
| 189 |
+
| 0.0588 | 750 | 0.1815 | - |
|
| 190 |
+
| 0.0627 | 800 | 0.2915 | - |
|
| 191 |
+
| 0.0667 | 850 | 0.276 | - |
|
| 192 |
+
| 0.0706 | 900 | 0.1682 | - |
|
| 193 |
+
| 0.0745 | 950 | 0.2328 | - |
|
| 194 |
+
| 0.0784 | 1000 | 0.2422 | - |
|
| 195 |
+
| 0.0824 | 1050 | 0.2753 | - |
|
| 196 |
+
| 0.0863 | 1100 | 0.2292 | - |
|
| 197 |
+
| 0.0902 | 1150 | 0.0791 | - |
|
| 198 |
+
| 0.0941 | 1200 | 0.3849 | - |
|
| 199 |
+
| 0.0980 | 1250 | 0.0964 | - |
|
| 200 |
+
| 0.1020 | 1300 | 0.1612 | - |
|
| 201 |
+
| 0.1059 | 1350 | 0.2755 | - |
|
| 202 |
+
| 0.1098 | 1400 | 0.1133 | - |
|
| 203 |
+
| 0.1137 | 1450 | 0.038 | - |
|
| 204 |
+
| 0.1176 | 1500 | 0.3195 | - |
|
| 205 |
+
| 0.1216 | 1550 | 0.0091 | - |
|
| 206 |
+
| 0.1255 | 1600 | 0.3148 | - |
|
| 207 |
+
| 0.1294 | 1650 | 0.1693 | - |
|
| 208 |
+
| 0.1333 | 1700 | 0.2411 | - |
|
| 209 |
+
| 0.1373 | 1750 | 0.2463 | - |
|
| 210 |
+
| 0.1412 | 1800 | 0.2807 | - |
|
| 211 |
+
| 0.1451 | 1850 | 0.112 | - |
|
| 212 |
+
| 0.1490 | 1900 | 0.2623 | - |
|
| 213 |
+
| 0.1529 | 1950 | 0.2465 | - |
|
| 214 |
+
| 0.1569 | 2000 | 0.4591 | - |
|
| 215 |
+
| 0.1608 | 2050 | 0.0556 | - |
|
| 216 |
+
| 0.1647 | 2100 | 0.0962 | - |
|
| 217 |
+
| 0.1686 | 2150 | 0.4525 | - |
|
| 218 |
+
| 0.1725 | 2200 | 0.2674 | - |
|
| 219 |
+
| 0.1765 | 2250 | 0.1513 | - |
|
| 220 |
+
| 0.1804 | 2300 | 0.3457 | - |
|
| 221 |
+
| 0.1843 | 2350 | 0.1415 | - |
|
| 222 |
+
| 0.1882 | 2400 | 0.0454 | - |
|
| 223 |
+
| 0.1922 | 2450 | 0.0156 | - |
|
| 224 |
+
| 0.1961 | 2500 | 0.2741 | - |
|
| 225 |
+
| 0.2 | 2550 | 0.1334 | - |
|
| 226 |
+
| 0.2039 | 2600 | 0.1838 | - |
|
| 227 |
+
| 0.2078 | 2650 | 0.1346 | - |
|
| 228 |
+
| 0.2118 | 2700 | 0.1022 | - |
|
| 229 |
+
| 0.2157 | 2750 | 0.3999 | - |
|
| 230 |
+
| 0.2196 | 2800 | 0.0953 | - |
|
| 231 |
+
| 0.2235 | 2850 | 0.1201 | - |
|
| 232 |
+
| 0.2275 | 2900 | 0.111 | - |
|
| 233 |
+
| 0.2314 | 2950 | 0.1081 | - |
|
| 234 |
+
| 0.2353 | 3000 | 0.1926 | - |
|
| 235 |
+
| 0.2392 | 3050 | 0.1047 | - |
|
| 236 |
+
| 0.2431 | 3100 | 0.2367 | - |
|
| 237 |
+
| 0.2471 | 3150 | 0.2034 | - |
|
| 238 |
+
| 0.2510 | 3200 | 0.0824 | - |
|
| 239 |
+
| 0.2549 | 3250 | 0.0338 | - |
|
| 240 |
+
| 0.2588 | 3300 | 0.2468 | - |
|
| 241 |
+
| 0.2627 | 3350 | 0.0082 | - |
|
| 242 |
+
| 0.2667 | 3400 | 0.0023 | - |
|
| 243 |
+
| 0.2706 | 3450 | 0.1106 | - |
|
| 244 |
+
| 0.2745 | 3500 | 0.1315 | - |
|
| 245 |
+
| 0.2784 | 3550 | 0.004 | - |
|
| 246 |
+
| 0.2824 | 3600 | 0.0836 | - |
|
| 247 |
+
| 0.2863 | 3650 | 0.2716 | - |
|
| 248 |
+
| 0.2902 | 3700 | 0.1873 | - |
|
| 249 |
+
| 0.2941 | 3750 | 0.4066 | - |
|
| 250 |
+
| 0.2980 | 3800 | 0.1448 | - |
|
| 251 |
+
| 0.3020 | 3850 | 0.0137 | - |
|
| 252 |
+
| 0.3059 | 3900 | 0.3471 | - |
|
| 253 |
+
| 0.3098 | 3950 | 0.1144 | - |
|
| 254 |
+
| 0.3137 | 4000 | 0.0596 | - |
|
| 255 |
+
| 0.3176 | 4050 | 0.0377 | - |
|
| 256 |
+
| 0.3216 | 4100 | 0.3316 | - |
|
| 257 |
+
| 0.3255 | 4150 | 0.0709 | - |
|
| 258 |
+
| 0.3294 | 4200 | 0.0515 | - |
|
| 259 |
+
| 0.3333 | 4250 | 0.2029 | - |
|
| 260 |
+
| 0.3373 | 4300 | 0.1191 | - |
|
| 261 |
+
| 0.3412 | 4350 | 0.2397 | - |
|
| 262 |
+
| 0.3451 | 4400 | 0.492 | - |
|
| 263 |
+
| 0.3490 | 4450 | 0.1178 | - |
|
| 264 |
+
| 0.3529 | 4500 | 0.3647 | - |
|
| 265 |
+
| 0.3569 | 4550 | 0.0098 | - |
|
| 266 |
+
| 0.3608 | 4600 | 0.2114 | - |
|
| 267 |
+
| 0.3647 | 4650 | 0.2392 | - |
|
| 268 |
+
| 0.3686 | 4700 | 0.2194 | - |
|
| 269 |
+
| 0.3725 | 4750 | 0.0578 | - |
|
| 270 |
+
| 0.3765 | 4800 | 0.0771 | - |
|
| 271 |
+
| 0.3804 | 4850 | 0.1582 | - |
|
| 272 |
+
| 0.3843 | 4900 | 0.0643 | - |
|
| 273 |
+
| 0.3882 | 4950 | 0.1372 | - |
|
| 274 |
+
| 0.3922 | 5000 | 0.0308 | - |
|
| 275 |
+
| 0.3961 | 5050 | 0.1247 | - |
|
| 276 |
+
| 0.4 | 5100 | 0.3076 | - |
|
| 277 |
+
| 0.4039 | 5150 | 0.1152 | - |
|
| 278 |
+
| 0.4078 | 5200 | 0.2112 | - |
|
| 279 |
+
| 0.4118 | 5250 | 0.0042 | - |
|
| 280 |
+
| 0.4157 | 5300 | 0.0869 | - |
|
| 281 |
+
| 0.4196 | 5350 | 0.0196 | - |
|
| 282 |
+
| 0.4235 | 5400 | 0.2406 | - |
|
| 283 |
+
| 0.4275 | 5450 | 0.3306 | - |
|
| 284 |
+
| 0.4314 | 5500 | 0.2328 | - |
|
| 285 |
+
| 0.4353 | 5550 | 0.008 | - |
|
| 286 |
+
| 0.4392 | 5600 | 0.0388 | - |
|
| 287 |
+
| 0.4431 | 5650 | 0.3812 | - |
|
| 288 |
+
| 0.4471 | 5700 | 0.6268 | - |
|
| 289 |
+
| 0.4510 | 5750 | 0.4426 | - |
|
| 290 |
+
| 0.4549 | 5800 | 0.1407 | - |
|
| 291 |
+
| 0.4588 | 5850 | 0.297 | - |
|
| 292 |
+
| 0.4627 | 5900 | 0.2657 | - |
|
| 293 |
+
| 0.4667 | 5950 | 0.1767 | - |
|
| 294 |
+
| 0.4706 | 6000 | 0.0152 | - |
|
| 295 |
+
| 0.4745 | 6050 | 0.2344 | - |
|
| 296 |
+
| 0.4784 | 6100 | 0.0447 | - |
|
| 297 |
+
| 0.4824 | 6150 | 0.0675 | - |
|
| 298 |
+
| 0.4863 | 6200 | 0.3086 | - |
|
| 299 |
+
| 0.4902 | 6250 | 0.5258 | - |
|
| 300 |
+
| 0.4941 | 6300 | 0.0826 | - |
|
| 301 |
+
| 0.4980 | 6350 | 0.0079 | - |
|
| 302 |
+
| 0.5020 | 6400 | 0.1817 | - |
|
| 303 |
+
| 0.5059 | 6450 | 0.0767 | - |
|
| 304 |
+
| 0.5098 | 6500 | 0.0221 | - |
|
| 305 |
+
| 0.5137 | 6550 | 0.0419 | - |
|
| 306 |
+
| 0.5176 | 6600 | 0.2452 | - |
|
| 307 |
+
| 0.5216 | 6650 | 0.0232 | - |
|
| 308 |
+
| 0.5255 | 6700 | 0.0804 | - |
|
| 309 |
+
| 0.5294 | 6750 | 0.1752 | - |
|
| 310 |
+
| 0.5333 | 6800 | 0.0127 | - |
|
| 311 |
+
| 0.5373 | 6850 | 0.0454 | - |
|
| 312 |
+
| 0.5412 | 6900 | 0.1759 | - |
|
| 313 |
+
| 0.5451 | 6950 | 0.0435 | - |
|
| 314 |
+
| 0.5490 | 7000 | 0.0109 | - |
|
| 315 |
+
| 0.5529 | 7050 | 0.0162 | - |
|
| 316 |
+
| 0.5569 | 7100 | 0.0133 | - |
|
| 317 |
+
| 0.5608 | 7150 | 0.2363 | - |
|
| 318 |
+
| 0.5647 | 7200 | 0.4987 | - |
|
| 319 |
+
| 0.5686 | 7250 | 0.1149 | - |
|
| 320 |
+
| 0.5725 | 7300 | 0.4613 | - |
|
| 321 |
+
| 0.5765 | 7350 | 0.3837 | - |
|
| 322 |
+
| 0.5804 | 7400 | 0.2439 | - |
|
| 323 |
+
| 0.5843 | 7450 | 0.0014 | - |
|
| 324 |
+
| 0.5882 | 7500 | 0.0177 | - |
|
| 325 |
+
| 0.5922 | 7550 | 0.0051 | - |
|
| 326 |
+
| 0.5961 | 7600 | 0.0418 | - |
|
| 327 |
+
| 0.6 | 7650 | 0.0061 | - |
|
| 328 |
+
| 0.6039 | 7700 | 0.2205 | - |
|
| 329 |
+
| 0.6078 | 7750 | 0.1769 | - |
|
| 330 |
+
| 0.6118 | 7800 | 0.0071 | - |
|
| 331 |
+
| 0.6157 | 7850 | 0.2271 | - |
|
| 332 |
+
| 0.6196 | 7900 | 0.3049 | - |
|
| 333 |
+
| 0.6235 | 7950 | 0.0016 | - |
|
| 334 |
+
| 0.6275 | 8000 | 0.2263 | - |
|
| 335 |
+
| 0.6314 | 8050 | 0.0057 | - |
|
| 336 |
+
| 0.6353 | 8100 | 0.1408 | - |
|
| 337 |
+
| 0.6392 | 8150 | 0.0303 | - |
|
| 338 |
+
| 0.6431 | 8200 | 0.0026 | - |
|
| 339 |
+
| 0.6471 | 8250 | 0.1743 | - |
|
| 340 |
+
| 0.6510 | 8300 | 0.2078 | - |
|
| 341 |
+
| 0.6549 | 8350 | 0.1764 | - |
|
| 342 |
+
| 0.6588 | 8400 | 0.0127 | - |
|
| 343 |
+
| 0.6627 | 8450 | 0.2435 | - |
|
| 344 |
+
| 0.6667 | 8500 | 0.0527 | - |
|
| 345 |
+
| 0.6706 | 8550 | 0.247 | - |
|
| 346 |
+
| 0.6745 | 8600 | 0.002 | - |
|
| 347 |
+
| 0.6784 | 8650 | 0.0087 | - |
|
| 348 |
+
| 0.6824 | 8700 | 0.1866 | - |
|
| 349 |
+
| 0.6863 | 8750 | 0.0087 | - |
|
| 350 |
+
| 0.6902 | 8800 | 0.1589 | - |
|
| 351 |
+
| 0.6941 | 8850 | 0.1848 | - |
|
| 352 |
+
| 0.6980 | 8900 | 0.0298 | - |
|
| 353 |
+
| 0.7020 | 8950 | 0.0081 | - |
|
| 354 |
+
| 0.7059 | 9000 | 0.3057 | - |
|
| 355 |
+
| 0.7098 | 9050 | 0.2059 | - |
|
| 356 |
+
| 0.7137 | 9100 | 0.2154 | - |
|
| 357 |
+
| 0.7176 | 9150 | 0.0013 | - |
|
| 358 |
+
| 0.7216 | 9200 | 0.1961 | - |
|
| 359 |
+
| 0.7255 | 9250 | 0.0129 | - |
|
| 360 |
+
| 0.7294 | 9300 | 0.0021 | - |
|
| 361 |
+
| 0.7333 | 9350 | 0.2106 | - |
|
| 362 |
+
| 0.7373 | 9400 | 0.0008 | - |
|
| 363 |
+
| 0.7412 | 9450 | 0.1261 | - |
|
| 364 |
+
| 0.7451 | 9500 | 0.1948 | - |
|
| 365 |
+
| 0.7490 | 9550 | 0.013 | - |
|
| 366 |
+
| 0.7529 | 9600 | 0.208 | - |
|
| 367 |
+
| 0.7569 | 9650 | 0.2382 | - |
|
| 368 |
+
| 0.7608 | 9700 | 0.0054 | - |
|
| 369 |
+
| 0.7647 | 9750 | 0.1869 | - |
|
| 370 |
+
| 0.7686 | 9800 | 0.0334 | - |
|
| 371 |
+
| 0.7725 | 9850 | 0.0197 | - |
|
| 372 |
+
| 0.7765 | 9900 | 0.0057 | - |
|
| 373 |
+
| 0.7804 | 9950 | 0.0056 | - |
|
| 374 |
+
| 0.7843 | 10000 | 0.0043 | - |
|
| 375 |
+
| 0.7882 | 10050 | 0.0025 | - |
|
| 376 |
+
| 0.7922 | 10100 | 0.6808 | - |
|
| 377 |
+
| 0.7961 | 10150 | 0.043 | - |
|
| 378 |
+
| 0.8 | 10200 | 0.0536 | - |
|
| 379 |
+
| 0.8039 | 10250 | 0.2435 | - |
|
| 380 |
+
| 0.8078 | 10300 | 0.0051 | - |
|
| 381 |
+
| 0.8118 | 10350 | 0.0653 | - |
|
| 382 |
+
| 0.8157 | 10400 | 0.017 | - |
|
| 383 |
+
| 0.8196 | 10450 | 0.0036 | - |
|
| 384 |
+
| 0.8235 | 10500 | 0.1561 | - |
|
| 385 |
+
| 0.8275 | 10550 | 0.001 | - |
|
| 386 |
+
| 0.8314 | 10600 | 0.1975 | - |
|
| 387 |
+
| 0.8353 | 10650 | 0.2378 | - |
|
| 388 |
+
| 0.8392 | 10700 | 0.1276 | - |
|
| 389 |
+
| 0.8431 | 10750 | 0.0719 | - |
|
| 390 |
+
| 0.8471 | 10800 | 0.1951 | - |
|
| 391 |
+
| 0.8510 | 10850 | 0.0446 | - |
|
| 392 |
+
| 0.8549 | 10900 | 0.2045 | - |
|
| 393 |
+
| 0.8588 | 10950 | 0.0598 | - |
|
| 394 |
+
| 0.8627 | 11000 | 0.0094 | - |
|
| 395 |
+
| 0.8667 | 11050 | 0.1117 | - |
|
| 396 |
+
| 0.8706 | 11100 | 0.0528 | - |
|
| 397 |
+
| 0.8745 | 11150 | 0.0047 | - |
|
| 398 |
+
| 0.8784 | 11200 | 0.1492 | - |
|
| 399 |
+
| 0.8824 | 11250 | 0.2204 | - |
|
| 400 |
+
| 0.8863 | 11300 | 0.0089 | - |
|
| 401 |
+
| 0.8902 | 11350 | 0.0709 | - |
|
| 402 |
+
| 0.8941 | 11400 | 0.1111 | - |
|
| 403 |
+
| 0.8980 | 11450 | 0.0048 | - |
|
| 404 |
+
| 0.9020 | 11500 | 0.0173 | - |
|
| 405 |
+
| 0.9059 | 11550 | 0.2862 | - |
|
| 406 |
+
| 0.9098 | 11600 | 0.2745 | - |
|
| 407 |
+
| 0.9137 | 11650 | 0.0054 | - |
|
| 408 |
+
| 0.9176 | 11700 | 0.0074 | - |
|
| 409 |
+
| 0.9216 | 11750 | 0.0036 | - |
|
| 410 |
+
| 0.9255 | 11800 | 0.0869 | - |
|
| 411 |
+
| 0.9294 | 11850 | 0.2333 | - |
|
| 412 |
+
| 0.9333 | 11900 | 0.15 | - |
|
| 413 |
+
| 0.9373 | 11950 | 0.066 | - |
|
| 414 |
+
| 0.9412 | 12000 | 0.1742 | - |
|
| 415 |
+
| 0.9451 | 12050 | 0.0009 | - |
|
| 416 |
+
| 0.9490 | 12100 | 0.1246 | - |
|
| 417 |
+
| 0.9529 | 12150 | 0.1674 | - |
|
| 418 |
+
| 0.9569 | 12200 | 0.1937 | - |
|
| 419 |
+
| 0.9608 | 12250 | 0.0724 | - |
|
| 420 |
+
| 0.9647 | 12300 | 0.0044 | - |
|
| 421 |
+
| 0.9686 | 12350 | 0.0013 | - |
|
| 422 |
+
| 0.9725 | 12400 | 0.0313 | - |
|
| 423 |
+
| 0.9765 | 12450 | 0.0925 | - |
|
| 424 |
+
| 0.9804 | 12500 | 0.1742 | - |
|
| 425 |
+
| 0.9843 | 12550 | 0.2294 | - |
|
| 426 |
+
| 0.9882 | 12600 | 0.1073 | - |
|
| 427 |
+
| 0.9922 | 12650 | 0.038 | - |
|
| 428 |
+
| 0.9961 | 12700 | 0.1866 | - |
|
| 429 |
+
| 1.0 | 12750 | 0.0141 | 0.2274 |
|
| 430 |
+
|
| 431 |
+
### Framework Versions
|
| 432 |
+
- Python: 3.10.13
|
| 433 |
+
- SetFit: 1.0.3
|
| 434 |
+
- Sentence Transformers: 3.0.1
|
| 435 |
+
- spaCy: 3.7.5
|
| 436 |
+
- Transformers: 4.36.2
|
| 437 |
+
- PyTorch: 2.1.2
|
| 438 |
+
- Datasets: 2.19.2
|
| 439 |
+
- Tokenizers: 0.15.2
|
| 440 |
+
|
| 441 |
+
## Citation
|
| 442 |
+
|
| 443 |
+
### BibTeX
|
| 444 |
+
```bibtex
|
| 445 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
| 446 |
+
doi = {10.48550/ARXIV.2209.11055},
|
| 447 |
+
url = {https://arxiv.org/abs/2209.11055},
|
| 448 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
| 449 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
| 450 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
| 451 |
+
publisher = {arXiv},
|
| 452 |
+
year = {2022},
|
| 453 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
| 454 |
+
}
|
| 455 |
+
```
|
| 456 |
+
|
| 457 |
+
<!--
|
| 458 |
+
## Glossary
|
| 459 |
+
|
| 460 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 461 |
+
-->
|
| 462 |
+
|
| 463 |
+
<!--
|
| 464 |
+
## Model Card Authors
|
| 465 |
+
|
| 466 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 467 |
+
-->
|
| 468 |
+
|
| 469 |
+
<!--
|
| 470 |
+
## Model Card Contact
|
| 471 |
+
|
| 472 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 473 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "sentence-transformers/all-MiniLM-L6-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": 6,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
| 21 |
+
"torch_dtype": "float32",
|
| 22 |
+
"transformers_version": "4.36.2",
|
| 23 |
+
"type_vocab_size": 2,
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"vocab_size": 30522
|
| 26 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "3.0.1",
|
| 4 |
+
"transformers": "4.36.2",
|
| 5 |
+
"pytorch": "2.1.2"
|
| 6 |
+
},
|
| 7 |
+
"prompts": {},
|
| 8 |
+
"default_prompt_name": null,
|
| 9 |
+
"similarity_fn_name": null
|
| 10 |
+
}
|
config_setfit.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"labels": [
|
| 3 |
+
"no aspect",
|
| 4 |
+
"aspect"
|
| 5 |
+
],
|
| 6 |
+
"spacy_model": "id_core_news_trf",
|
| 7 |
+
"normalize_embeddings": false,
|
| 8 |
+
"span_context": 0
|
| 9 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e3173307112cf1c005e9c809d44961c94e31bf8857eaeec673205bd1c00f580
|
| 3 |
+
size 90864192
|
model_head.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:618aae8b14544cae960911fb4c6fd5b77b4930869a5fe395aef33cb2aae26cf0
|
| 3 |
+
size 3919
|
modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.models.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 256,
|
| 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,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"max_length": 128,
|
| 50 |
+
"model_max_length": 256,
|
| 51 |
+
"never_split": null,
|
| 52 |
+
"pad_to_multiple_of": null,
|
| 53 |
+
"pad_token": "[PAD]",
|
| 54 |
+
"pad_token_type_id": 0,
|
| 55 |
+
"padding_side": "right",
|
| 56 |
+
"sep_token": "[SEP]",
|
| 57 |
+
"stride": 0,
|
| 58 |
+
"strip_accents": null,
|
| 59 |
+
"tokenize_chinese_chars": true,
|
| 60 |
+
"tokenizer_class": "BertTokenizer",
|
| 61 |
+
"truncation_side": "right",
|
| 62 |
+
"truncation_strategy": "longest_first",
|
| 63 |
+
"unk_token": "[UNK]"
|
| 64 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|