Funnyworld1412 commited on
Commit
1f411ab
·
verified ·
1 Parent(s): b6749af

Add SetFit ABSA 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,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: firqaaa/indo-setfit-absa-bert-base-restaurants-aspect
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
+ ---
29
+
30
+ # SetFit Aspect Model with firqaaa/indo-setfit-absa-bert-base-restaurants-aspect
31
+
32
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Aspect Based Sentiment Analysis (ABSA). This SetFit model uses [firqaaa/indo-setfit-absa-bert-base-restaurants-aspect](https://huggingface.co/firqaaa/indo-setfit-absa-bert-base-restaurants-aspect) 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.
33
+
34
+ The model has been trained using an efficient few-shot learning technique that involves:
35
+
36
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
37
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
38
+
39
+ This model was trained within the context of a larger system for ABSA, which looks like so:
40
+
41
+ 1. Use a spaCy model to select possible aspect span candidates.
42
+ 2. **Use this SetFit model to filter these possible aspect span candidates.**
43
+ 3. Use a SetFit model to classify the filtered aspect span candidates.
44
+
45
+ ## Model Details
46
+
47
+ ### Model Description
48
+ - **Model Type:** SetFit
49
+ - **Sentence Transformer body:** [firqaaa/indo-setfit-absa-bert-base-restaurants-aspect](https://huggingface.co/firqaaa/indo-setfit-absa-bert-base-restaurants-aspect)
50
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
51
+ - **spaCy Model:** id_core_news_trf
52
+ - **SetFitABSA Aspect Model:** [Funnyworld1412/ABSA_review_game-aspect](https://huggingface.co/Funnyworld1412/ABSA_review_game-aspect)
53
+ - **SetFitABSA Polarity Model:** [Funnyworld1412/ABSA_review_game-polarity](https://huggingface.co/Funnyworld1412/ABSA_review_game-polarity)
54
+ - **Maximum Sequence Length:** 512 tokens
55
+ - **Number of Classes:** 2 classes
56
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
57
+ <!-- - **Language:** Unknown -->
58
+ <!-- - **License:** Unknown -->
59
+
60
+ ### Model Sources
61
+
62
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
63
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
64
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
65
+
66
+ ### Model Labels
67
+ | Label | Examples |
68
+ |:----------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
69
+ | 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> |
70
+ | 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> |
71
+
72
+ ## Uses
73
+
74
+ ### Direct Use for Inference
75
+
76
+ First install the SetFit library:
77
+
78
+ ```bash
79
+ pip install setfit
80
+ ```
81
+
82
+ Then you can load this model and run inference.
83
+
84
+ ```python
85
+ from setfit import AbsaModel
86
+
87
+ # Download from the 🤗 Hub
88
+ model = AbsaModel.from_pretrained(
89
+ "Funnyworld1412/ABSA_review_game-aspect",
90
+ "Funnyworld1412/ABSA_review_game-polarity",
91
+ )
92
+ # Run inference
93
+ preds = model("The food was great, but the venue is just way too busy.")
94
+ ```
95
+
96
+ <!--
97
+ ### Downstream Use
98
+
99
+ *List how someone could finetune this model on their own dataset.*
100
+ -->
101
+
102
+ <!--
103
+ ### Out-of-Scope Use
104
+
105
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
106
+ -->
107
+
108
+ <!--
109
+ ## Bias, Risks and Limitations
110
+
111
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
112
+ -->
113
+
114
+ <!--
115
+ ### Recommendations
116
+
117
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
118
+ -->
119
+
120
+ ## Training Details
121
+
122
+ ### Training Set Metrics
123
+ | Training set | Min | Median | Max |
124
+ |:-------------|:----|:--------|:----|
125
+ | Word count | 2 | 29.9357 | 80 |
126
+
127
+ | Label | Training Sample Count |
128
+ |:----------|:----------------------|
129
+ | no aspect | 3834 |
130
+ | aspect | 1266 |
131
+
132
+ ### Training Hyperparameters
133
+ - batch_size: (4, 4)
134
+ - num_epochs: (1, 1)
135
+ - max_steps: -1
136
+ - sampling_strategy: oversampling
137
+ - num_iterations: 5
138
+ - body_learning_rate: (2e-05, 1e-05)
139
+ - head_learning_rate: 0.01
140
+ - loss: CosineSimilarityLoss
141
+ - distance_metric: cosine_distance
142
+ - margin: 0.25
143
+ - end_to_end: False
144
+ - use_amp: False
145
+ - warmup_proportion: 0.1
146
+ - seed: 42
147
+ - eval_max_steps: -1
148
+ - load_best_model_at_end: False
149
+
150
+ ### Training Results
151
+ | Epoch | Step | Training Loss | Validation Loss |
152
+ |:------:|:-----:|:-------------:|:---------------:|
153
+ | 0.0001 | 1 | 0.0317 | - |
154
+ | 0.0039 | 50 | 0.0772 | - |
155
+ | 0.0078 | 100 | 0.2836 | - |
156
+ | 0.0118 | 150 | 0.2367 | - |
157
+ | 0.0157 | 200 | 0.1712 | - |
158
+ | 0.0196 | 250 | 0.0927 | - |
159
+ | 0.0235 | 300 | 0.3909 | - |
160
+ | 0.0275 | 350 | 0.038 | - |
161
+ | 0.0314 | 400 | 0.2421 | - |
162
+ | 0.0353 | 450 | 0.3313 | - |
163
+ | 0.0392 | 500 | 0.457 | - |
164
+ | 0.0431 | 550 | 0.0046 | - |
165
+ | 0.0471 | 600 | 0.2057 | - |
166
+ | 0.0510 | 650 | 0.0399 | - |
167
+ | 0.0549 | 700 | 0.0293 | - |
168
+ | 0.0588 | 750 | 0.011 | - |
169
+ | 0.0627 | 800 | 0.3644 | - |
170
+ | 0.0667 | 850 | 0.0327 | - |
171
+ | 0.0706 | 900 | 0.3194 | - |
172
+ | 0.0745 | 950 | 0.2082 | - |
173
+ | 0.0784 | 1000 | 0.0113 | - |
174
+ | 0.0824 | 1050 | 0.3499 | - |
175
+ | 0.0863 | 1100 | 0.1662 | - |
176
+ | 0.0902 | 1150 | 0.2291 | - |
177
+ | 0.0941 | 1200 | 0.4169 | - |
178
+ | 0.0980 | 1250 | 0.2417 | - |
179
+ | 0.1020 | 1300 | 0.4988 | - |
180
+ | 0.1059 | 1350 | 0.3409 | - |
181
+ | 0.1098 | 1400 | 0.1171 | - |
182
+ | 0.1137 | 1450 | 0.0225 | - |
183
+ | 0.1176 | 1500 | 0.1653 | - |
184
+ | 0.1216 | 1550 | 0.0328 | - |
185
+ | 0.1255 | 1600 | 0.1238 | - |
186
+ | 0.1294 | 1650 | 0.0158 | - |
187
+ | 0.1333 | 1700 | 0.2405 | - |
188
+ | 0.1373 | 1750 | 0.0734 | - |
189
+ | 0.1412 | 1800 | 0.2323 | - |
190
+ | 0.1451 | 1850 | 0.0248 | - |
191
+ | 0.1490 | 1900 | 0.328 | - |
192
+ | 0.1529 | 1950 | 0.1495 | - |
193
+ | 0.1569 | 2000 | 0.4438 | - |
194
+ | 0.1608 | 2050 | 0.0535 | - |
195
+ | 0.1647 | 2100 | 0.0733 | - |
196
+ | 0.1686 | 2150 | 0.016 | - |
197
+ | 0.1725 | 2200 | 0.0214 | - |
198
+ | 0.1765 | 2250 | 0.0139 | - |
199
+ | 0.1804 | 2300 | 0.1737 | - |
200
+ | 0.1843 | 2350 | 0.0847 | - |
201
+ | 0.1882 | 2400 | 0.052 | - |
202
+ | 0.1922 | 2450 | 0.0439 | - |
203
+ | 0.1961 | 2500 | 0.1388 | - |
204
+ | 0.2 | 2550 | 0.0166 | - |
205
+ | 0.2039 | 2600 | 0.1413 | - |
206
+ | 0.2078 | 2650 | 0.1629 | - |
207
+ | 0.2118 | 2700 | 0.0029 | - |
208
+ | 0.2157 | 2750 | 0.0373 | - |
209
+ | 0.2196 | 2800 | 0.0231 | - |
210
+ | 0.2235 | 2850 | 0.1305 | - |
211
+ | 0.2275 | 2900 | 0.0079 | - |
212
+ | 0.2314 | 2950 | 0.0016 | - |
213
+ | 0.2353 | 3000 | 0.0872 | - |
214
+ | 0.2392 | 3050 | 0.04 | - |
215
+ | 0.2431 | 3100 | 0.0041 | - |
216
+ | 0.2471 | 3150 | 0.0042 | - |
217
+ | 0.2510 | 3200 | 0.0063 | - |
218
+ | 0.2549 | 3250 | 0.0092 | - |
219
+ | 0.2588 | 3300 | 0.0232 | - |
220
+ | 0.2627 | 3350 | 0.0065 | - |
221
+ | 0.2667 | 3400 | 0.0345 | - |
222
+ | 0.2706 | 3450 | 0.0541 | - |
223
+ | 0.2745 | 3500 | 0.0042 | - |
224
+ | 0.2784 | 3550 | 0.0016 | - |
225
+ | 0.2824 | 3600 | 0.0071 | - |
226
+ | 0.2863 | 3650 | 0.0152 | - |
227
+ | 0.2902 | 3700 | 0.2999 | - |
228
+ | 0.2941 | 3750 | 0.1675 | - |
229
+ | 0.2980 | 3800 | 0.0029 | - |
230
+ | 0.3020 | 3850 | 0.0037 | - |
231
+ | 0.3059 | 3900 | 0.4066 | - |
232
+ | 0.3098 | 3950 | 0.0038 | - |
233
+ | 0.3137 | 4000 | 0.002 | - |
234
+ | 0.3176 | 4050 | 0.4448 | - |
235
+ | 0.3216 | 4100 | 0.0145 | - |
236
+ | 0.3255 | 4150 | 0.0069 | - |
237
+ | 0.3294 | 4200 | 0.2314 | - |
238
+ | 0.3333 | 4250 | 0.2381 | - |
239
+ | 0.3373 | 4300 | 0.2505 | - |
240
+ | 0.3412 | 4350 | 0.0002 | - |
241
+ | 0.3451 | 4400 | 0.013 | - |
242
+ | 0.3490 | 4450 | 0.0024 | - |
243
+ | 0.3529 | 4500 | 0.001 | - |
244
+ | 0.3569 | 4550 | 0.0029 | - |
245
+ | 0.3608 | 4600 | 0.2407 | - |
246
+ | 0.3647 | 4650 | 0.0036 | - |
247
+ | 0.3686 | 4700 | 0.2237 | - |
248
+ | 0.3725 | 4750 | 0.0114 | - |
249
+ | 0.3765 | 4800 | 0.1249 | - |
250
+ | 0.3804 | 4850 | 0.0002 | - |
251
+ | 0.3843 | 4900 | 0.0035 | - |
252
+ | 0.3882 | 4950 | 0.0106 | - |
253
+ | 0.3922 | 5000 | 0.2193 | - |
254
+ | 0.3961 | 5050 | 0.031 | - |
255
+ | 0.4 | 5100 | 0.0789 | - |
256
+ | 0.4039 | 5150 | 0.0329 | - |
257
+ | 0.4078 | 5200 | 0.0058 | - |
258
+ | 0.4118 | 5250 | 0.0092 | - |
259
+ | 0.4157 | 5300 | 0.0015 | - |
260
+ | 0.4196 | 5350 | 0.0023 | - |
261
+ | 0.4235 | 5400 | 0.0876 | - |
262
+ | 0.4275 | 5450 | 0.3165 | - |
263
+ | 0.4314 | 5500 | 0.0175 | - |
264
+ | 0.4353 | 5550 | 0.0075 | - |
265
+ | 0.4392 | 5600 | 0.006 | - |
266
+ | 0.4431 | 5650 | 0.2122 | - |
267
+ | 0.4471 | 5700 | 0.1537 | - |
268
+ | 0.4510 | 5750 | 0.2612 | - |
269
+ | 0.4549 | 5800 | 0.2033 | - |
270
+ | 0.4588 | 5850 | 0.2441 | - |
271
+ | 0.4627 | 5900 | 0.0115 | - |
272
+ | 0.4667 | 5950 | 0.0015 | - |
273
+ | 0.4706 | 6000 | 0.0007 | - |
274
+ | 0.4745 | 6050 | 0.1293 | - |
275
+ | 0.4784 | 6100 | 0.2008 | - |
276
+ | 0.4824 | 6150 | 0.0096 | - |
277
+ | 0.4863 | 6200 | 0.0884 | - |
278
+ | 0.4902 | 6250 | 0.0025 | - |
279
+ | 0.4941 | 6300 | 0.0016 | - |
280
+ | 0.4980 | 6350 | 0.0006 | - |
281
+ | 0.5020 | 6400 | 0.2076 | - |
282
+ | 0.5059 | 6450 | 0.0005 | - |
283
+ | 0.5098 | 6500 | 0.1255 | - |
284
+ | 0.5137 | 6550 | 0.0301 | - |
285
+ | 0.5176 | 6600 | 0.0185 | - |
286
+ | 0.5216 | 6650 | 0.0008 | - |
287
+ | 0.5255 | 6700 | 0.2277 | - |
288
+ | 0.5294 | 6750 | 0.0256 | - |
289
+ | 0.5333 | 6800 | 0.0016 | - |
290
+ | 0.5373 | 6850 | 0.0249 | - |
291
+ | 0.5412 | 6900 | 0.1583 | - |
292
+ | 0.5451 | 6950 | 0.012 | - |
293
+ | 0.5490 | 7000 | 0.0009 | - |
294
+ | 0.5529 | 7050 | 0.0011 | - |
295
+ | 0.5569 | 7100 | 0.0007 | - |
296
+ | 0.5608 | 7150 | 0.2337 | - |
297
+ | 0.5647 | 7200 | 0.3919 | - |
298
+ | 0.5686 | 7250 | 0.007 | - |
299
+ | 0.5725 | 7300 | 0.2353 | - |
300
+ | 0.5765 | 7350 | 0.0081 | - |
301
+ | 0.5804 | 7400 | 0.0165 | - |
302
+ | 0.5843 | 7450 | 0.2165 | - |
303
+ | 0.5882 | 7500 | 0.0781 | - |
304
+ | 0.5922 | 7550 | 0.1987 | - |
305
+ | 0.5961 | 7600 | 0.2214 | - |
306
+ | 0.6 | 7650 | 0.0001 | - |
307
+ | 0.6039 | 7700 | 0.2061 | - |
308
+ | 0.6078 | 7750 | 0.187 | - |
309
+ | 0.6118 | 7800 | 0.0008 | - |
310
+ | 0.6157 | 7850 | 0.0397 | - |
311
+ | 0.6196 | 7900 | 0.2305 | - |
312
+ | 0.6235 | 7950 | 0.0026 | - |
313
+ | 0.6275 | 8000 | 0.2132 | - |
314
+ | 0.6314 | 8050 | 0.1767 | - |
315
+ | 0.6353 | 8100 | 0.2049 | - |
316
+ | 0.6392 | 8150 | 0.0561 | - |
317
+ | 0.6431 | 8200 | 0.0003 | - |
318
+ | 0.6471 | 8250 | 0.342 | - |
319
+ | 0.6510 | 8300 | 0.0126 | - |
320
+ | 0.6549 | 8350 | 0.3781 | - |
321
+ | 0.6588 | 8400 | 0.0002 | - |
322
+ | 0.6627 | 8450 | 0.0002 | - |
323
+ | 0.6667 | 8500 | 0.0034 | - |
324
+ | 0.6706 | 8550 | 0.0007 | - |
325
+ | 0.6745 | 8600 | 0.0004 | - |
326
+ | 0.6784 | 8650 | 0.0004 | - |
327
+ | 0.6824 | 8700 | 0.0231 | - |
328
+ | 0.6863 | 8750 | 0.0004 | - |
329
+ | 0.6902 | 8800 | 0.1727 | - |
330
+ | 0.6941 | 8850 | 0.0002 | - |
331
+ | 0.6980 | 8900 | 0.0011 | - |
332
+ | 0.7020 | 8950 | 0.0002 | - |
333
+ | 0.7059 | 9000 | 0.0259 | - |
334
+ | 0.7098 | 9050 | 0.2027 | - |
335
+ | 0.7137 | 9100 | 0.0016 | - |
336
+ | 0.7176 | 9150 | 0.0001 | - |
337
+ | 0.7216 | 9200 | 0.0003 | - |
338
+ | 0.7255 | 9250 | 0.0081 | - |
339
+ | 0.7294 | 9300 | 0.0195 | - |
340
+ | 0.7333 | 9350 | 0.1193 | - |
341
+ | 0.7373 | 9400 | 0.0006 | - |
342
+ | 0.7412 | 9450 | 0.0011 | - |
343
+ | 0.7451 | 9500 | 0.002 | - |
344
+ | 0.7490 | 9550 | 0.1367 | - |
345
+ | 0.7529 | 9600 | 0.0001 | - |
346
+ | 0.7569 | 9650 | 0.0 | - |
347
+ | 0.7608 | 9700 | 0.0001 | - |
348
+ | 0.7647 | 9750 | 0.1551 | - |
349
+ | 0.7686 | 9800 | 0.0011 | - |
350
+ | 0.7725 | 9850 | 0.001 | - |
351
+ | 0.7765 | 9900 | 0.0009 | - |
352
+ | 0.7804 | 9950 | 0.0003 | - |
353
+ | 0.7843 | 10000 | 0.0 | - |
354
+ | 0.7882 | 10050 | 0.0007 | - |
355
+ | 0.7922 | 10100 | 0.1746 | - |
356
+ | 0.7961 | 10150 | 0.0007 | - |
357
+ | 0.8 | 10200 | 0.0144 | - |
358
+ | 0.8039 | 10250 | 0.184 | - |
359
+ | 0.8078 | 10300 | 0.0003 | - |
360
+ | 0.8118 | 10350 | 0.0454 | - |
361
+ | 0.8157 | 10400 | 0.003 | - |
362
+ | 0.8196 | 10450 | 0.0001 | - |
363
+ | 0.8235 | 10500 | 0.0053 | - |
364
+ | 0.8275 | 10550 | 0.0001 | - |
365
+ | 0.8314 | 10600 | 0.321 | - |
366
+ | 0.8353 | 10650 | 0.1054 | - |
367
+ | 0.8392 | 10700 | 0.3902 | - |
368
+ | 0.8431 | 10750 | 0.0001 | - |
369
+ | 0.8471 | 10800 | 0.0004 | - |
370
+ | 0.8510 | 10850 | 0.0001 | - |
371
+ | 0.8549 | 10900 | 0.0001 | - |
372
+ | 0.8588 | 10950 | 0.0007 | - |
373
+ | 0.8627 | 11000 | 0.0006 | - |
374
+ | 0.8667 | 11050 | 0.1327 | - |
375
+ | 0.8706 | 11100 | 0.0649 | - |
376
+ | 0.8745 | 11150 | 0.0005 | - |
377
+ | 0.8784 | 11200 | 0.0415 | - |
378
+ | 0.8824 | 11250 | 0.0299 | - |
379
+ | 0.8863 | 11300 | 0.0002 | - |
380
+ | 0.8902 | 11350 | 0.021 | - |
381
+ | 0.8941 | 11400 | 0.0001 | - |
382
+ | 0.8980 | 11450 | 0.2569 | - |
383
+ | 0.9020 | 11500 | 0.001 | - |
384
+ | 0.9059 | 11550 | 0.1148 | - |
385
+ | 0.9098 | 11600 | 0.2232 | - |
386
+ | 0.9137 | 11650 | 0.0001 | - |
387
+ | 0.9176 | 11700 | 0.001 | - |
388
+ | 0.9216 | 11750 | 0.0011 | - |
389
+ | 0.9255 | 11800 | 0.0036 | - |
390
+ | 0.9294 | 11850 | 0.0003 | - |
391
+ | 0.9333 | 11900 | 0.0004 | - |
392
+ | 0.9373 | 11950 | 0.0003 | - |
393
+ | 0.9412 | 12000 | 0.0002 | - |
394
+ | 0.9451 | 12050 | 0.0001 | - |
395
+ | 0.9490 | 12100 | 0.1616 | - |
396
+ | 0.9529 | 12150 | 0.0001 | - |
397
+ | 0.9569 | 12200 | 0.0004 | - |
398
+ | 0.9608 | 12250 | 0.1212 | - |
399
+ | 0.9647 | 12300 | 0.0005 | - |
400
+ | 0.9686 | 12350 | 0.0001 | - |
401
+ | 0.9725 | 12400 | 0.0016 | - |
402
+ | 0.9765 | 12450 | 0.0003 | - |
403
+ | 0.9804 | 12500 | 0.0002 | - |
404
+ | 0.9843 | 12550 | 0.0027 | - |
405
+ | 0.9882 | 12600 | 0.0005 | - |
406
+ | 0.9922 | 12650 | 0.0015 | - |
407
+ | 0.9961 | 12700 | 0.0033 | - |
408
+ | 1.0 | 12750 | 0.0004 | 0.1762 |
409
+
410
+ ### Framework Versions
411
+ - Python: 3.10.13
412
+ - SetFit: 1.0.3
413
+ - Sentence Transformers: 3.0.1
414
+ - spaCy: 3.7.5
415
+ - Transformers: 4.36.2
416
+ - PyTorch: 2.1.2
417
+ - Datasets: 2.19.2
418
+ - Tokenizers: 0.15.2
419
+
420
+ ## Citation
421
+
422
+ ### BibTeX
423
+ ```bibtex
424
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
425
+ doi = {10.48550/ARXIV.2209.11055},
426
+ url = {https://arxiv.org/abs/2209.11055},
427
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
428
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
429
+ title = {Efficient Few-Shot Learning Without Prompts},
430
+ publisher = {arXiv},
431
+ year = {2022},
432
+ copyright = {Creative Commons Attribution 4.0 International}
433
+ }
434
+ ```
435
+
436
+ <!--
437
+ ## Glossary
438
+
439
+ *Clearly define terms in order to be accessible across audiences.*
440
+ -->
441
+
442
+ <!--
443
+ ## Model Card Authors
444
+
445
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
446
+ -->
447
+
448
+ <!--
449
+ ## Model Card Contact
450
+
451
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
452
+ -->
config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Funnyworld1412/ABSA_game_squad_busters-aspect",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "BertModel"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "LABEL_0": 0,
24
+ "LABEL_1": 1,
25
+ "LABEL_2": 2,
26
+ "LABEL_3": 3,
27
+ "LABEL_4": 4
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "output_past": true,
35
+ "pad_token_id": 0,
36
+ "pooler_fc_size": 768,
37
+ "pooler_num_attention_heads": 12,
38
+ "pooler_num_fc_layers": 3,
39
+ "pooler_size_per_head": 128,
40
+ "pooler_type": "first_token_transform",
41
+ "position_embedding_type": "absolute",
42
+ "torch_dtype": "float32",
43
+ "transformers_version": "4.36.2",
44
+ "type_vocab_size": 2,
45
+ "use_cache": true,
46
+ "vocab_size": 50000
47
+ }
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
+ "span_context": 0,
3
+ "labels": [
4
+ "no aspect",
5
+ "aspect"
6
+ ],
7
+ "spacy_model": "id_core_news_trf",
8
+ "normalize_embeddings": false
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:514de0322761e3d57649f5396bc9154a16dec37fb811e2279434dd79fcf99305
3
+ size 497787752
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cae2e008fb8ddb0532d8fd773c531fa89f4540fc86bb4e6e94d3f5f62bd3a1c3
3
+ size 6991
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,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
+ "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
+ "mask_token": "[MASK]",
49
+ "max_length": 512,
50
+ "model_max_length": 512,
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