Wispra commited on
Commit
25e1a25
·
verified ·
1 Parent(s): fcac1df

Upload url-classifier-v1 (accuracy: 0.888)

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
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
+ }
README.md CHANGED
@@ -1,3 +1,545 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: setfit
3
+ tags:
4
+ - setfit
5
+ - sentence-transformers
6
+ - text-classification
7
+ - generated_from_setfit_trainer
8
+ metrics:
9
+ - accuracy
10
+ widget:
11
+ - text: https://lesjupesdeprune.com/pages/contact
12
+ - text: https://www.ebspaca.fr/news-standard/
13
+ - text: https://www.pepejeans.com/fr_fr/enfants/fille
14
+ - text: https://ynspir.com
15
+ - text: https://www.bivouack.fr/
16
+ pipeline_tag: text-classification
17
+ inference: true
18
+ base_model: sentence-transformers/paraphrase-MiniLM-L6-v2
19
+ ---
20
+
21
+ # SetFit with sentence-transformers/paraphrase-MiniLM-L6-v2
22
+
23
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/paraphrase-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/paraphrase-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.
24
+
25
+ The model has been trained using an efficient few-shot learning technique that involves:
26
+
27
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
28
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
29
+
30
+ ## Model Details
31
+
32
+ ### Model Description
33
+ - **Model Type:** SetFit
34
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/paraphrase-MiniLM-L6-v2)
35
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
36
+ - **Maximum Sequence Length:** 128 tokens
37
+ - **Number of Classes:** 9 classes
38
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
39
+ <!-- - **Language:** Unknown -->
40
+ <!-- - **License:** Unknown -->
41
+
42
+ ### Model Sources
43
+
44
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
45
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
46
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
47
+
48
+ ### Model Labels
49
+ | Label | Examples |
50
+ |:-------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51
+ | navigation | <ul><li>'https://www.groupe-ocea.fr'</li><li>'https://woemen.fr/'</li><li>'https://fourchenoire.com/fr'</li></ul> |
52
+ | product | <ul><li>'https://www.woemen.fr/products/tshirt-oversize-mixte-blanc'</li><li>'https://www.bivouack.fr/salon-sejour/lit-escamotable-canape/ensemble-lit-escamotable-horizontal-avec-canape-et-bureau-citala'</li><li>'https://www.bivouack.fr/lit-escamotable-vertical-nida'</li></ul> |
53
+ | service | <ul><li>'https://pub-pro.fr/service/decorations-adhesives-depolies/'</li><li>'https://bclimatisation.fr/installation-chauffage-rennes/'</li><li>'https://www.philartstudio.com/mariages/reportage/noelie-marc/'</li></ul> |
54
+ | brand | <ul><li>'https://ynspir.com/guide-marques/orac-decor/'</li><li>'https://cogitech.fr/en/studio-2/'</li><li>'https://woemen.fr/pages/woemen-x-lubia-partenariat-protections-periodiques'</li></ul> |
55
+ | legal | <ul><li>'https://ditesmoioui.com/faqs/'</li><li>'https://www.scal-ia.fr/contact'</li><li>'https://pub-pro.fr/contact'</li></ul> |
56
+ | listing | <ul><li>'https://www.pepejeans.com/fr_fr/femme/accessoires/lunettes-de-soleil'</li><li>'https://ynspir.com/conseils-decoration/agencement/amenagement-studio/'</li><li>'https://www.ebspaca.fr/service-carousel/'</li></ul> |
57
+ | post | <ul><li>'https://woemen.fr/blogs/le-coton-biologique'</li><li>'https://ynspir.com/divers/quelles-couleurs-choisir-pour-un-interieur-lumineux-et-chaleureux/'</li><li>'https://www.lacompagnieducaviar.fr/post/nos-idées-de-recettes-comment-sublimer-vos-plats-avec-nos-produits-autour-du-caviar'</li></ul> |
58
+ | testimonial | <ul><li>'https://cogitech.fr/en/realisation/design-en/epee/'</li><li>'https://cogitech.fr/realisation/design/dynamic-landscape-fr/'</li><li>'https://cogitech.fr/en/realisation/design-en/apollo-2/'</li></ul> |
59
+ | account_shop | <ul><li>'https://www.pepejeans.com/fr_fr/jeans-fit-guide-man.html'</li><li>'https://www.woemen.fr/policies/refund-policy'</li><li>'https://lesjupesdeprune.com/customer_authentication/login'</li></ul> |
60
+
61
+ ## Uses
62
+
63
+ ### Direct Use for Inference
64
+
65
+ First install the SetFit library:
66
+
67
+ ```bash
68
+ pip install setfit
69
+ ```
70
+
71
+ Then you can load this model and run inference.
72
+
73
+ ```python
74
+ from setfit import SetFitModel
75
+
76
+ # Download from the 🤗 Hub
77
+ model = SetFitModel.from_pretrained("Wispra-fr/setfit-url-classifier")
78
+ # Run inference
79
+ preds = model("https://ynspir.com")
80
+ ```
81
+
82
+ <!--
83
+ ### Downstream Use
84
+
85
+ *List how someone could finetune this model on their own dataset.*
86
+ -->
87
+
88
+ <!--
89
+ ### Out-of-Scope Use
90
+
91
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
92
+ -->
93
+
94
+ <!--
95
+ ## Bias, Risks and Limitations
96
+
97
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
98
+ -->
99
+
100
+ <!--
101
+ ### Recommendations
102
+
103
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
104
+ -->
105
+
106
+ ## Training Details
107
+
108
+ ### Training Set Metrics
109
+ | Training set | Min | Median | Max |
110
+ |:-------------|:----|:-------|:----|
111
+ | Word count | 1 | 1.0 | 1 |
112
+
113
+ | Label | Training Sample Count |
114
+ |:-------------|:----------------------|
115
+ | legal | 70 |
116
+ | brand | 86 |
117
+ | product | 176 |
118
+ | service | 184 |
119
+ | post | 133 |
120
+ | navigation | 53 |
121
+ | listing | 265 |
122
+ | account_shop | 38 |
123
+ | testimonial | 132 |
124
+
125
+ ### Training Hyperparameters
126
+ - batch_size: (32, 32)
127
+ - num_epochs: (5, 5)
128
+ - max_steps: -1
129
+ - sampling_strategy: undersampling
130
+ - num_iterations: 10
131
+ - body_learning_rate: (2e-05, 2e-05)
132
+ - head_learning_rate: 2e-05
133
+ - loss: CosineSimilarityLoss
134
+ - distance_metric: cosine_distance
135
+ - margin: 0.25
136
+ - end_to_end: False
137
+ - use_amp: True
138
+ - warmup_proportion: 0.1
139
+ - max_length: 128
140
+ - seed: 42
141
+ - eval_max_steps: -1
142
+ - load_best_model_at_end: False
143
+
144
+ ### Training Results
145
+ | Epoch | Step | Training Loss | Validation Loss |
146
+ |:------:|:----:|:-------------:|:---------------:|
147
+ | 0.0014 | 1 | 0.2637 | - |
148
+ | 0.0141 | 10 | 0.2127 | - |
149
+ | 0.0281 | 20 | 0.2137 | - |
150
+ | 0.0422 | 30 | 0.2431 | - |
151
+ | 0.0563 | 40 | 0.2347 | - |
152
+ | 0.0703 | 50 | 0.2264 | - |
153
+ | 0.0844 | 60 | 0.2391 | - |
154
+ | 0.0985 | 70 | 0.2395 | - |
155
+ | 0.1125 | 80 | 0.253 | - |
156
+ | 0.1266 | 90 | 0.2295 | - |
157
+ | 0.1406 | 100 | 0.2281 | - |
158
+ | 0.1547 | 110 | 0.2216 | - |
159
+ | 0.1688 | 120 | 0.2297 | - |
160
+ | 0.1828 | 130 | 0.2471 | - |
161
+ | 0.1969 | 140 | 0.209 | - |
162
+ | 0.2110 | 150 | 0.1998 | - |
163
+ | 0.2250 | 160 | 0.1932 | - |
164
+ | 0.2391 | 170 | 0.1821 | - |
165
+ | 0.2532 | 180 | 0.1894 | - |
166
+ | 0.2672 | 190 | 0.1685 | - |
167
+ | 0.2813 | 200 | 0.163 | - |
168
+ | 0.2954 | 210 | 0.2206 | - |
169
+ | 0.3094 | 220 | 0.1698 | - |
170
+ | 0.3235 | 230 | 0.2171 | - |
171
+ | 0.3376 | 240 | 0.1834 | - |
172
+ | 0.3516 | 250 | 0.1678 | - |
173
+ | 0.3657 | 260 | 0.1537 | - |
174
+ | 0.3797 | 270 | 0.1527 | - |
175
+ | 0.3938 | 280 | 0.1751 | - |
176
+ | 0.4079 | 290 | 0.152 | - |
177
+ | 0.4219 | 300 | 0.1371 | - |
178
+ | 0.4360 | 310 | 0.1403 | - |
179
+ | 0.4501 | 320 | 0.1042 | - |
180
+ | 0.4641 | 330 | 0.1108 | - |
181
+ | 0.4782 | 340 | 0.1003 | - |
182
+ | 0.4923 | 350 | 0.1226 | - |
183
+ | 0.5063 | 360 | 0.1613 | - |
184
+ | 0.5204 | 370 | 0.1259 | - |
185
+ | 0.5345 | 380 | 0.0877 | - |
186
+ | 0.5485 | 390 | 0.1067 | - |
187
+ | 0.5626 | 400 | 0.1143 | - |
188
+ | 0.5767 | 410 | 0.096 | - |
189
+ | 0.5907 | 420 | 0.0557 | - |
190
+ | 0.6048 | 430 | 0.051 | - |
191
+ | 0.6188 | 440 | 0.1339 | - |
192
+ | 0.6329 | 450 | 0.0846 | - |
193
+ | 0.6470 | 460 | 0.0657 | - |
194
+ | 0.6610 | 470 | 0.0812 | - |
195
+ | 0.6751 | 480 | 0.058 | - |
196
+ | 0.6892 | 490 | 0.093 | - |
197
+ | 0.7032 | 500 | 0.0397 | - |
198
+ | 0.7173 | 510 | 0.0932 | - |
199
+ | 0.7314 | 520 | 0.062 | - |
200
+ | 0.7454 | 530 | 0.0595 | - |
201
+ | 0.7595 | 540 | 0.0774 | - |
202
+ | 0.7736 | 550 | 0.0444 | - |
203
+ | 0.7876 | 560 | 0.06 | - |
204
+ | 0.8017 | 570 | 0.0486 | - |
205
+ | 0.8158 | 580 | 0.0708 | - |
206
+ | 0.8298 | 590 | 0.0518 | - |
207
+ | 0.8439 | 600 | 0.0479 | - |
208
+ | 0.8579 | 610 | 0.0511 | - |
209
+ | 0.8720 | 620 | 0.0722 | - |
210
+ | 0.8861 | 630 | 0.0691 | - |
211
+ | 0.9001 | 640 | 0.0841 | - |
212
+ | 0.9142 | 650 | 0.0997 | - |
213
+ | 0.9283 | 660 | 0.0583 | - |
214
+ | 0.9423 | 670 | 0.0264 | - |
215
+ | 0.9564 | 680 | 0.0452 | - |
216
+ | 0.9705 | 690 | 0.0174 | - |
217
+ | 0.9845 | 700 | 0.0448 | - |
218
+ | 0.9986 | 710 | 0.043 | - |
219
+ | 1.0127 | 720 | 0.0801 | - |
220
+ | 1.0267 | 730 | 0.063 | - |
221
+ | 1.0408 | 740 | 0.0376 | - |
222
+ | 1.0549 | 750 | 0.0273 | - |
223
+ | 1.0689 | 760 | 0.0516 | - |
224
+ | 1.0830 | 770 | 0.0317 | - |
225
+ | 1.0970 | 780 | 0.0247 | - |
226
+ | 1.1111 | 790 | 0.0254 | - |
227
+ | 1.1252 | 800 | 0.0213 | - |
228
+ | 1.1392 | 810 | 0.0172 | - |
229
+ | 1.1533 | 820 | 0.0365 | - |
230
+ | 1.1674 | 830 | 0.0247 | - |
231
+ | 1.1814 | 840 | 0.0471 | - |
232
+ | 1.1955 | 850 | 0.0248 | - |
233
+ | 1.2096 | 860 | 0.0711 | - |
234
+ | 1.2236 | 870 | 0.0231 | - |
235
+ | 1.2377 | 880 | 0.0504 | - |
236
+ | 1.2518 | 890 | 0.0477 | - |
237
+ | 1.2658 | 900 | 0.0104 | - |
238
+ | 1.2799 | 910 | 0.0338 | - |
239
+ | 1.2940 | 920 | 0.0116 | - |
240
+ | 1.3080 | 930 | 0.0599 | - |
241
+ | 1.3221 | 940 | 0.0215 | - |
242
+ | 1.3361 | 950 | 0.0418 | - |
243
+ | 1.3502 | 960 | 0.0265 | - |
244
+ | 1.3643 | 970 | 0.0371 | - |
245
+ | 1.3783 | 980 | 0.0334 | - |
246
+ | 1.3924 | 990 | 0.0478 | - |
247
+ | 1.4065 | 1000 | 0.0223 | - |
248
+ | 1.4205 | 1010 | 0.0132 | - |
249
+ | 1.4346 | 1020 | 0.0166 | - |
250
+ | 1.4487 | 1030 | 0.035 | - |
251
+ | 1.4627 | 1040 | 0.0081 | - |
252
+ | 1.4768 | 1050 | 0.0238 | - |
253
+ | 1.4909 | 1060 | 0.0177 | - |
254
+ | 1.5049 | 1070 | 0.009 | - |
255
+ | 1.5190 | 1080 | 0.0296 | - |
256
+ | 1.5331 | 1090 | 0.0323 | - |
257
+ | 1.5471 | 1100 | 0.0237 | - |
258
+ | 1.5612 | 1110 | 0.0298 | - |
259
+ | 1.5752 | 1120 | 0.0592 | - |
260
+ | 1.5893 | 1130 | 0.0052 | - |
261
+ | 1.6034 | 1140 | 0.0112 | - |
262
+ | 1.6174 | 1150 | 0.0477 | - |
263
+ | 1.6315 | 1160 | 0.0356 | - |
264
+ | 1.6456 | 1170 | 0.0324 | - |
265
+ | 1.6596 | 1180 | 0.0412 | - |
266
+ | 1.6737 | 1190 | 0.0484 | - |
267
+ | 1.6878 | 1200 | 0.0262 | - |
268
+ | 1.7018 | 1210 | 0.011 | - |
269
+ | 1.7159 | 1220 | 0.0075 | - |
270
+ | 1.7300 | 1230 | 0.0471 | - |
271
+ | 1.7440 | 1240 | 0.0398 | - |
272
+ | 1.7581 | 1250 | 0.0335 | - |
273
+ | 1.7722 | 1260 | 0.0278 | - |
274
+ | 1.7862 | 1270 | 0.0533 | - |
275
+ | 1.8003 | 1280 | 0.0291 | - |
276
+ | 1.8143 | 1290 | 0.0122 | - |
277
+ | 1.8284 | 1300 | 0.0039 | - |
278
+ | 1.8425 | 1310 | 0.0043 | - |
279
+ | 1.8565 | 1320 | 0.0135 | - |
280
+ | 1.8706 | 1330 | 0.0182 | - |
281
+ | 1.8847 | 1340 | 0.0306 | - |
282
+ | 1.8987 | 1350 | 0.0135 | - |
283
+ | 1.9128 | 1360 | 0.0034 | - |
284
+ | 1.9269 | 1370 | 0.0109 | - |
285
+ | 1.9409 | 1380 | 0.0209 | - |
286
+ | 1.9550 | 1390 | 0.0244 | - |
287
+ | 1.9691 | 1400 | 0.0052 | - |
288
+ | 1.9831 | 1410 | 0.0095 | - |
289
+ | 1.9972 | 1420 | 0.0067 | - |
290
+ | 2.0113 | 1430 | 0.0091 | - |
291
+ | 2.0253 | 1440 | 0.0077 | - |
292
+ | 2.0394 | 1450 | 0.0246 | - |
293
+ | 2.0534 | 1460 | 0.0123 | - |
294
+ | 2.0675 | 1470 | 0.0061 | - |
295
+ | 2.0816 | 1480 | 0.0375 | - |
296
+ | 2.0956 | 1490 | 0.0187 | - |
297
+ | 2.1097 | 1500 | 0.0029 | - |
298
+ | 2.1238 | 1510 | 0.0043 | - |
299
+ | 2.1378 | 1520 | 0.0191 | - |
300
+ | 2.1519 | 1530 | 0.0039 | - |
301
+ | 2.1660 | 1540 | 0.0628 | - |
302
+ | 2.1800 | 1550 | 0.0278 | - |
303
+ | 2.1941 | 1560 | 0.0106 | - |
304
+ | 2.2082 | 1570 | 0.0192 | - |
305
+ | 2.2222 | 1580 | 0.0127 | - |
306
+ | 2.2363 | 1590 | 0.0053 | - |
307
+ | 2.2504 | 1600 | 0.0211 | - |
308
+ | 2.2644 | 1610 | 0.0291 | - |
309
+ | 2.2785 | 1620 | 0.0043 | - |
310
+ | 2.2925 | 1630 | 0.0147 | - |
311
+ | 2.3066 | 1640 | 0.0219 | - |
312
+ | 2.3207 | 1650 | 0.0017 | - |
313
+ | 2.3347 | 1660 | 0.0114 | - |
314
+ | 2.3488 | 1670 | 0.0056 | - |
315
+ | 2.3629 | 1680 | 0.0075 | - |
316
+ | 2.3769 | 1690 | 0.0191 | - |
317
+ | 2.3910 | 1700 | 0.0049 | - |
318
+ | 2.4051 | 1710 | 0.0279 | - |
319
+ | 2.4191 | 1720 | 0.0081 | - |
320
+ | 2.4332 | 1730 | 0.0047 | - |
321
+ | 2.4473 | 1740 | 0.0035 | - |
322
+ | 2.4613 | 1750 | 0.0024 | - |
323
+ | 2.4754 | 1760 | 0.0022 | - |
324
+ | 2.4895 | 1770 | 0.0091 | - |
325
+ | 2.5035 | 1780 | 0.0238 | - |
326
+ | 2.5176 | 1790 | 0.0084 | - |
327
+ | 2.5316 | 1800 | 0.0267 | - |
328
+ | 2.5457 | 1810 | 0.0071 | - |
329
+ | 2.5598 | 1820 | 0.0027 | - |
330
+ | 2.5738 | 1830 | 0.0226 | - |
331
+ | 2.5879 | 1840 | 0.0032 | - |
332
+ | 2.6020 | 1850 | 0.0014 | - |
333
+ | 2.6160 | 1860 | 0.0028 | - |
334
+ | 2.6301 | 1870 | 0.0043 | - |
335
+ | 2.6442 | 1880 | 0.0105 | - |
336
+ | 2.6582 | 1890 | 0.0036 | - |
337
+ | 2.6723 | 1900 | 0.0031 | - |
338
+ | 2.6864 | 1910 | 0.008 | - |
339
+ | 2.7004 | 1920 | 0.0296 | - |
340
+ | 2.7145 | 1930 | 0.0103 | - |
341
+ | 2.7286 | 1940 | 0.0234 | - |
342
+ | 2.7426 | 1950 | 0.0035 | - |
343
+ | 2.7567 | 1960 | 0.0252 | - |
344
+ | 2.7707 | 1970 | 0.0238 | - |
345
+ | 2.7848 | 1980 | 0.0045 | - |
346
+ | 2.7989 | 1990 | 0.0304 | - |
347
+ | 2.8129 | 2000 | 0.0021 | - |
348
+ | 2.8270 | 2010 | 0.0046 | - |
349
+ | 2.8411 | 2020 | 0.0027 | - |
350
+ | 2.8551 | 2030 | 0.0169 | - |
351
+ | 2.8692 | 2040 | 0.0089 | - |
352
+ | 2.8833 | 2050 | 0.0187 | - |
353
+ | 2.8973 | 2060 | 0.0032 | - |
354
+ | 2.9114 | 2070 | 0.0025 | - |
355
+ | 2.9255 | 2080 | 0.0161 | - |
356
+ | 2.9395 | 2090 | 0.0023 | - |
357
+ | 2.9536 | 2100 | 0.0014 | - |
358
+ | 2.9677 | 2110 | 0.004 | - |
359
+ | 2.9817 | 2120 | 0.0061 | - |
360
+ | 2.9958 | 2130 | 0.0227 | - |
361
+ | 3.0098 | 2140 | 0.0012 | - |
362
+ | 3.0239 | 2150 | 0.0377 | - |
363
+ | 3.0380 | 2160 | 0.0145 | - |
364
+ | 3.0520 | 2170 | 0.022 | - |
365
+ | 3.0661 | 2180 | 0.0017 | - |
366
+ | 3.0802 | 2190 | 0.0013 | - |
367
+ | 3.0942 | 2200 | 0.0018 | - |
368
+ | 3.1083 | 2210 | 0.0025 | - |
369
+ | 3.1224 | 2220 | 0.0024 | - |
370
+ | 3.1364 | 2230 | 0.0088 | - |
371
+ | 3.1505 | 2240 | 0.0019 | - |
372
+ | 3.1646 | 2250 | 0.0159 | - |
373
+ | 3.1786 | 2260 | 0.004 | - |
374
+ | 3.1927 | 2270 | 0.0008 | - |
375
+ | 3.2068 | 2280 | 0.0031 | - |
376
+ | 3.2208 | 2290 | 0.0037 | - |
377
+ | 3.2349 | 2300 | 0.0015 | - |
378
+ | 3.2489 | 2310 | 0.0041 | - |
379
+ | 3.2630 | 2320 | 0.0026 | - |
380
+ | 3.2771 | 2330 | 0.0009 | - |
381
+ | 3.2911 | 2340 | 0.0022 | - |
382
+ | 3.3052 | 2350 | 0.0028 | - |
383
+ | 3.3193 | 2360 | 0.0161 | - |
384
+ | 3.3333 | 2370 | 0.0076 | - |
385
+ | 3.3474 | 2380 | 0.0021 | - |
386
+ | 3.3615 | 2390 | 0.0172 | - |
387
+ | 3.3755 | 2400 | 0.0292 | - |
388
+ | 3.3896 | 2410 | 0.0051 | - |
389
+ | 3.4037 | 2420 | 0.0174 | - |
390
+ | 3.4177 | 2430 | 0.0081 | - |
391
+ | 3.4318 | 2440 | 0.0065 | - |
392
+ | 3.4459 | 2450 | 0.0024 | - |
393
+ | 3.4599 | 2460 | 0.0094 | - |
394
+ | 3.4740 | 2470 | 0.0146 | - |
395
+ | 3.4880 | 2480 | 0.004 | - |
396
+ | 3.5021 | 2490 | 0.0044 | - |
397
+ | 3.5162 | 2500 | 0.0016 | - |
398
+ | 3.5302 | 2510 | 0.0032 | - |
399
+ | 3.5443 | 2520 | 0.0289 | - |
400
+ | 3.5584 | 2530 | 0.0123 | - |
401
+ | 3.5724 | 2540 | 0.0055 | - |
402
+ | 3.5865 | 2550 | 0.0031 | - |
403
+ | 3.6006 | 2560 | 0.0081 | - |
404
+ | 3.6146 | 2570 | 0.0042 | - |
405
+ | 3.6287 | 2580 | 0.0051 | - |
406
+ | 3.6428 | 2590 | 0.0058 | - |
407
+ | 3.6568 | 2600 | 0.0017 | - |
408
+ | 3.6709 | 2610 | 0.005 | - |
409
+ | 3.6850 | 2620 | 0.0015 | - |
410
+ | 3.6990 | 2630 | 0.0008 | - |
411
+ | 3.7131 | 2640 | 0.0069 | - |
412
+ | 3.7271 | 2650 | 0.0022 | - |
413
+ | 3.7412 | 2660 | 0.0024 | - |
414
+ | 3.7553 | 2670 | 0.0018 | - |
415
+ | 3.7693 | 2680 | 0.0031 | - |
416
+ | 3.7834 | 2690 | 0.0112 | - |
417
+ | 3.7975 | 2700 | 0.0051 | - |
418
+ | 3.8115 | 2710 | 0.0024 | - |
419
+ | 3.8256 | 2720 | 0.0011 | - |
420
+ | 3.8397 | 2730 | 0.0008 | - |
421
+ | 3.8537 | 2740 | 0.0035 | - |
422
+ | 3.8678 | 2750 | 0.0029 | - |
423
+ | 3.8819 | 2760 | 0.0047 | - |
424
+ | 3.8959 | 2770 | 0.0208 | - |
425
+ | 3.9100 | 2780 | 0.0026 | - |
426
+ | 3.9241 | 2790 | 0.0152 | - |
427
+ | 3.9381 | 2800 | 0.0021 | - |
428
+ | 3.9522 | 2810 | 0.0188 | - |
429
+ | 3.9662 | 2820 | 0.0162 | - |
430
+ | 3.9803 | 2830 | 0.0009 | - |
431
+ | 3.9944 | 2840 | 0.0045 | - |
432
+ | 4.0084 | 2850 | 0.0058 | - |
433
+ | 4.0225 | 2860 | 0.031 | - |
434
+ | 4.0366 | 2870 | 0.0013 | - |
435
+ | 4.0506 | 2880 | 0.0021 | - |
436
+ | 4.0647 | 2890 | 0.0022 | - |
437
+ | 4.0788 | 2900 | 0.008 | - |
438
+ | 4.0928 | 2910 | 0.0107 | - |
439
+ | 4.1069 | 2920 | 0.0015 | - |
440
+ | 4.1210 | 2930 | 0.003 | - |
441
+ | 4.1350 | 2940 | 0.0094 | - |
442
+ | 4.1491 | 2950 | 0.0013 | - |
443
+ | 4.1632 | 2960 | 0.0084 | - |
444
+ | 4.1772 | 2970 | 0.0021 | - |
445
+ | 4.1913 | 2980 | 0.0068 | - |
446
+ | 4.2053 | 2990 | 0.0032 | - |
447
+ | 4.2194 | 3000 | 0.0044 | - |
448
+ | 4.2335 | 3010 | 0.0037 | - |
449
+ | 4.2475 | 3020 | 0.0182 | - |
450
+ | 4.2616 | 3030 | 0.0023 | - |
451
+ | 4.2757 | 3040 | 0.0019 | - |
452
+ | 4.2897 | 3050 | 0.001 | - |
453
+ | 4.3038 | 3060 | 0.0149 | - |
454
+ | 4.3179 | 3070 | 0.0241 | - |
455
+ | 4.3319 | 3080 | 0.0028 | - |
456
+ | 4.3460 | 3090 | 0.0104 | - |
457
+ | 4.3601 | 3100 | 0.0007 | - |
458
+ | 4.3741 | 3110 | 0.0015 | - |
459
+ | 4.3882 | 3120 | 0.0023 | - |
460
+ | 4.4023 | 3130 | 0.0228 | - |
461
+ | 4.4163 | 3140 | 0.0161 | - |
462
+ | 4.4304 | 3150 | 0.0151 | - |
463
+ | 4.4444 | 3160 | 0.0043 | - |
464
+ | 4.4585 | 3170 | 0.0031 | - |
465
+ | 4.4726 | 3180 | 0.0041 | - |
466
+ | 4.4866 | 3190 | 0.0006 | - |
467
+ | 4.5007 | 3200 | 0.005 | - |
468
+ | 4.5148 | 3210 | 0.0027 | - |
469
+ | 4.5288 | 3220 | 0.0019 | - |
470
+ | 4.5429 | 3230 | 0.003 | - |
471
+ | 4.5570 | 3240 | 0.0024 | - |
472
+ | 4.5710 | 3250 | 0.0167 | - |
473
+ | 4.5851 | 3260 | 0.001 | - |
474
+ | 4.5992 | 3270 | 0.0022 | - |
475
+ | 4.6132 | 3280 | 0.013 | - |
476
+ | 4.6273 | 3290 | 0.0095 | - |
477
+ | 4.6414 | 3300 | 0.0202 | - |
478
+ | 4.6554 | 3310 | 0.0147 | - |
479
+ | 4.6695 | 3320 | 0.0009 | - |
480
+ | 4.6835 | 3330 | 0.0008 | - |
481
+ | 4.6976 | 3340 | 0.009 | - |
482
+ | 4.7117 | 3350 | 0.0018 | - |
483
+ | 4.7257 | 3360 | 0.0043 | - |
484
+ | 4.7398 | 3370 | 0.0014 | - |
485
+ | 4.7539 | 3380 | 0.0015 | - |
486
+ | 4.7679 | 3390 | 0.0111 | - |
487
+ | 4.7820 | 3400 | 0.0028 | - |
488
+ | 4.7961 | 3410 | 0.0019 | - |
489
+ | 4.8101 | 3420 | 0.0005 | - |
490
+ | 4.8242 | 3430 | 0.0102 | - |
491
+ | 4.8383 | 3440 | 0.0015 | - |
492
+ | 4.8523 | 3450 | 0.0014 | - |
493
+ | 4.8664 | 3460 | 0.0007 | - |
494
+ | 4.8805 | 3470 | 0.0006 | - |
495
+ | 4.8945 | 3480 | 0.0022 | - |
496
+ | 4.9086 | 3490 | 0.0034 | - |
497
+ | 4.9226 | 3500 | 0.0005 | - |
498
+ | 4.9367 | 3510 | 0.0055 | - |
499
+ | 4.9508 | 3520 | 0.0013 | - |
500
+ | 4.9648 | 3530 | 0.003 | - |
501
+ | 4.9789 | 3540 | 0.0105 | - |
502
+ | 4.9930 | 3550 | 0.0007 | - |
503
+
504
+ ### Framework Versions
505
+ - Python: 3.11.0rc1
506
+ - SetFit: 1.0.3
507
+ - Sentence Transformers: 2.3.1
508
+ - Transformers: 4.40.2
509
+ - PyTorch: 2.1.2+cu121
510
+ - Datasets: 2.16.1
511
+ - Tokenizers: 0.19.1
512
+
513
+ ## Citation
514
+
515
+ ### BibTeX
516
+ ```bibtex
517
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
518
+ doi = {10.48550/ARXIV.2209.11055},
519
+ url = {https://arxiv.org/abs/2209.11055},
520
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
521
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
522
+ title = {Efficient Few-Shot Learning Without Prompts},
523
+ publisher = {arXiv},
524
+ year = {2022},
525
+ copyright = {Creative Commons Attribution 4.0 International}
526
+ }
527
+ ```
528
+
529
+ <!--
530
+ ## Glossary
531
+
532
+ *Clearly define terms in order to be accessible across audiences.*
533
+ -->
534
+
535
+ <!--
536
+ ## Model Card Authors
537
+
538
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
539
+ -->
540
+
541
+ <!--
542
+ ## Model Card Contact
543
+
544
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
545
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-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.40.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ }
7
+ }
config_setfit.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "normalize_embeddings": false,
3
+ "labels": [
4
+ "legal",
5
+ "brand",
6
+ "product",
7
+ "service",
8
+ "post",
9
+ "navigation",
10
+ "listing",
11
+ "account_shop",
12
+ "testimonial"
13
+ ]
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:738c46351ea6803abc3f4db606c13a9a87d7ec9ceec2771d8a1d639efca191cd
3
+ size 90864192
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbfdd4729515af8b5844f33b2157d89732c9866c1b701a823e53a88b3972d7cc
3
+ size 28639
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,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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff