Add SetFit ABSA model
Browse files- README.md +27 -26
- config.json +1 -1
- config_setfit.json +2 -2
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -10,22 +10,22 @@ base_model: BAAI/bge-small-en-v1.5
|
|
10 |
metrics:
|
11 |
- accuracy
|
12 |
widget:
|
13 |
-
- text:
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
of the
|
19 |
-
|
20 |
-
|
21 |
-
- text:
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
pipeline_tag: text-classification
|
30 |
inference: false
|
31 |
model-index:
|
@@ -40,7 +40,7 @@ model-index:
|
|
40 |
split: test
|
41 |
metrics:
|
42 |
- type: accuracy
|
43 |
-
value: 0.
|
44 |
name: Accuracy
|
45 |
---
|
46 |
|
@@ -91,7 +91,7 @@ This model was trained within the context of a larger system for ABSA, which loo
|
|
91 |
### Metrics
|
92 |
| Label | Accuracy |
|
93 |
|:--------|:---------|
|
94 |
-
| **all** | 0.
|
95 |
|
96 |
## Uses
|
97 |
|
@@ -174,14 +174,15 @@ preds = model("The food was great, but the venue is just way too busy.")
|
|
174 |
| Epoch | Step | Training Loss | Validation Loss |
|
175 |
|:----------:|:-------:|:-------------:|:---------------:|
|
176 |
| 0.0018 | 1 | 0.2598 | - |
|
177 |
-
| 0.0893 | 50 | 0.2458 | 0.
|
178 |
-
| 0.1786 | 100 | 0.2418 | 0.
|
179 |
-
|
|
180 |
-
| 0.3571
|
181 |
-
| 0.4464 | 250 | 0.0075 | 0.
|
182 |
-
| 0.5357 | 300 | 0.0023 | 0.
|
183 |
-
| 0.625 | 350 | 0.0021 | 0.
|
184 |
-
| 0.7143 | 400 | 0.0037 | 0.
|
|
|
185 |
|
186 |
* The bold row denotes the saved checkpoint.
|
187 |
### Framework Versions
|
|
|
10 |
metrics:
|
11 |
- accuracy
|
12 |
widget:
|
13 |
+
- text: closures:Runa Sarkar, a professor at the Indian Institute of Management Calcutta,
|
14 |
+
said the coal mining region most affected by mine closures is West Bengal.
|
15 |
+
- text: comment:Neither the Russian nor the Chinese defence ministries responded to
|
16 |
+
Reuters' requests for comment.
|
17 |
+
- text: 'Canada:The statements made in Canada''s parliament were finally an acknowledgement
|
18 |
+
of the reality that young Sikhs like me have lived through for decades: Sikh dissidents
|
19 |
+
expressing their support for an independent state may face the risk of imminent
|
20 |
+
harm, even in the diaspora.'
|
21 |
+
- text: France:The Paris Agreement, a legally binding international treaty on climate
|
22 |
+
change adopted by 196 parties at the UN Climate Change Conference (COP21) in Paris,
|
23 |
+
France in December 2015, aims to hold the increase in the global average temperature
|
24 |
+
to well below 2°C above pre-industrial levels.
|
25 |
+
- text: 'risk:The statements made in Canada''s parliament were finally an acknowledgement
|
26 |
+
of the reality that young Sikhs like me have lived through for decades: Sikh dissidents
|
27 |
+
expressing their support for an independent state may face the risk of imminent
|
28 |
+
harm, even in the diaspora.'
|
29 |
pipeline_tag: text-classification
|
30 |
inference: false
|
31 |
model-index:
|
|
|
40 |
split: test
|
41 |
metrics:
|
42 |
- type: accuracy
|
43 |
+
value: 0.7630057803468208
|
44 |
name: Accuracy
|
45 |
---
|
46 |
|
|
|
91 |
### Metrics
|
92 |
| Label | Accuracy |
|
93 |
|:--------|:---------|
|
94 |
+
| **all** | 0.7630 |
|
95 |
|
96 |
## Uses
|
97 |
|
|
|
174 |
| Epoch | Step | Training Loss | Validation Loss |
|
175 |
|:----------:|:-------:|:-------------:|:---------------:|
|
176 |
| 0.0018 | 1 | 0.2598 | - |
|
177 |
+
| 0.0893 | 50 | 0.2458 | 0.2547 |
|
178 |
+
| 0.1786 | 100 | 0.2418 | 0.2522 |
|
179 |
+
| 0.2679 | 150 | 0.2427 | 0.2452 |
|
180 |
+
| **0.3571** | **200** | **0.1272** | **0.2419** |
|
181 |
+
| 0.4464 | 250 | 0.0075 | 0.2853 |
|
182 |
+
| 0.5357 | 300 | 0.0023 | 0.3134 |
|
183 |
+
| 0.625 | 350 | 0.0021 | 0.3138 |
|
184 |
+
| 0.7143 | 400 | 0.0037 | 0.3502 |
|
185 |
+
| 0.8036 | 450 | 0.011 | 0.3437 |
|
186 |
|
187 |
* The bold row denotes the saved checkpoint.
|
188 |
### Framework Versions
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "models/
|
3 |
"architectures": [
|
4 |
"BertModel"
|
5 |
],
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "models/step_200",
|
3 |
"architectures": [
|
4 |
"BertModel"
|
5 |
],
|
config_setfit.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
"no aspect",
|
4 |
"aspect"
|
5 |
],
|
6 |
-
"spacy_model": "en_core_web_lg",
|
7 |
"normalize_embeddings": false,
|
8 |
-
"span_context": 0
|
|
|
9 |
}
|
|
|
3 |
"no aspect",
|
4 |
"aspect"
|
5 |
],
|
|
|
6 |
"normalize_embeddings": false,
|
7 |
+
"span_context": 0,
|
8 |
+
"spacy_model": "en_core_web_lg"
|
9 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 133462128
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f561bf1872dee4ee28bf0dce9928b671ec79f80f4d59898c3c89d4d9c3e1220a
|
3 |
size 133462128
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 3919
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:361558fdb7f6f2124a2dca2ef02494aa04c0358f23442e8a804dc898c16b30df
|
3 |
size 3919
|