Add SetFit ABSA model
Browse files- README.md +34 -28
- config_setfit.json +1 -1
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -6,16 +6,16 @@ tags:
|
|
| 6 |
- text-classification
|
| 7 |
- generated_from_setfit_trainer
|
| 8 |
widget:
|
| 9 |
-
- text:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
- text:
|
| 18 |
-
|
| 19 |
metrics:
|
| 20 |
- accuracy
|
| 21 |
pipeline_tag: text-classification
|
|
@@ -61,10 +61,10 @@ This model was trained within the context of a larger system for ABSA, which loo
|
|
| 61 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
| 62 |
|
| 63 |
### Model Labels
|
| 64 |
-
| Label | Examples
|
| 65 |
-
|
| 66 |
-
| aspect | <ul><li>'
|
| 67 |
-
| no aspect | <ul><li>
|
| 68 |
|
| 69 |
## Uses
|
| 70 |
|
|
@@ -119,12 +119,12 @@ preds = model("The food was great, but the venue is just way too busy.")
|
|
| 119 |
### Training Set Metrics
|
| 120 |
| Training set | Min | Median | Max |
|
| 121 |
|:-------------|:----|:--------|:----|
|
| 122 |
-
| Word count |
|
| 123 |
|
| 124 |
| Label | Training Sample Count |
|
| 125 |
|:----------|:----------------------|
|
| 126 |
-
| no aspect |
|
| 127 |
-
| aspect |
|
| 128 |
|
| 129 |
### Training Hyperparameters
|
| 130 |
- batch_size: (128, 128)
|
|
@@ -147,17 +147,23 @@ preds = model("The food was great, but the venue is just way too busy.")
|
|
| 147 |
### Training Results
|
| 148 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 149 |
|:------:|:----:|:-------------:|:---------------:|
|
| 150 |
-
| 0.
|
| 151 |
-
| 0.
|
| 152 |
-
| 0.
|
| 153 |
-
| 0.
|
| 154 |
-
| 0.
|
| 155 |
-
| 0.
|
| 156 |
-
| 0.
|
| 157 |
-
| 0.
|
| 158 |
-
| 0.
|
| 159 |
-
| 0.
|
| 160 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
### Framework Versions
|
| 163 |
- Python: 3.11.12
|
|
|
|
| 6 |
- text-classification
|
| 7 |
- generated_from_setfit_trainer
|
| 8 |
widget:
|
| 9 |
+
- text: fast:fast boot up, great 1080p resolution, expandable (added 4gb additional
|
| 10 |
+
ram and a 1tb hd) and great value for it's $365+tax price point.
|
| 11 |
+
- text: thinness:the sleekness and thinness of this laptop is lightweight and easy
|
| 12 |
+
to carry.
|
| 13 |
+
- text: read:when what i heave read, the memory is not upgradeable since it's soldered
|
| 14 |
+
to the board.
|
| 15 |
+
- text: memory:a good amount of memory. it doesnt need to have a bunch of memory,
|
| 16 |
+
but a decent amount is perfect!
|
| 17 |
+
- text: wifi:nevertheless great processor, great graphics, 16 gb memory runs cool
|
| 18 |
+
in daily use, battery lasts about 6-7 hours using wifi and video.
|
| 19 |
metrics:
|
| 20 |
- accuracy
|
| 21 |
pipeline_tag: text-classification
|
|
|
|
| 61 |
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
| 62 |
|
| 63 |
### Model Labels
|
| 64 |
+
| Label | Examples |
|
| 65 |
+
|:----------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 66 |
+
| aspect | <ul><li>'lightweight:very lightweight.'</li><li>'carry:this computer is so light weight and easy to carry.'</li><li>"lightweight:it's lightweight, the screen is decently bright, and it'll go for hours without needing a charge"</li></ul> |
|
| 67 |
+
| no aspect | <ul><li>'computer:this computer is so light weight and easy to carry.'</li><li>'weight:this computer is so light weight and easy to carry.'</li><li>"screen:it's lightweight, the screen is decently bright, and it'll go for hours without needing a charge"</li></ul> |
|
| 68 |
|
| 69 |
## Uses
|
| 70 |
|
|
|
|
| 119 |
### Training Set Metrics
|
| 120 |
| Training set | Min | Median | Max |
|
| 121 |
|:-------------|:----|:--------|:----|
|
| 122 |
+
| Word count | 1 | 15.9156 | 37 |
|
| 123 |
|
| 124 |
| Label | Training Sample Count |
|
| 125 |
|:----------|:----------------------|
|
| 126 |
+
| no aspect | 251 |
|
| 127 |
+
| aspect | 140 |
|
| 128 |
|
| 129 |
### Training Hyperparameters
|
| 130 |
- batch_size: (128, 128)
|
|
|
|
| 147 |
### Training Results
|
| 148 |
| Epoch | Step | Training Loss | Validation Loss |
|
| 149 |
|:------:|:----:|:-------------:|:---------------:|
|
| 150 |
+
| 0.0015 | 1 | 0.29 | - |
|
| 151 |
+
| 0.0770 | 50 | 0.2977 | 0.2646 |
|
| 152 |
+
| 0.1541 | 100 | 0.2622 | 0.2558 |
|
| 153 |
+
| 0.2311 | 150 | 0.2493 | 0.2482 |
|
| 154 |
+
| 0.3082 | 200 | 0.2347 | 0.2261 |
|
| 155 |
+
| 0.3852 | 250 | 0.1396 | 0.1701 |
|
| 156 |
+
| 0.4622 | 300 | 0.0514 | 0.1434 |
|
| 157 |
+
| 0.5393 | 350 | 0.0227 | 0.1808 |
|
| 158 |
+
| 0.6163 | 400 | 0.0161 | 0.1624 |
|
| 159 |
+
| 0.6934 | 450 | 0.011 | 0.1718 |
|
| 160 |
+
| 0.7704 | 500 | 0.0101 | 0.1731 |
|
| 161 |
+
| 0.8475 | 550 | 0.0089 | 0.1433 |
|
| 162 |
+
| 0.9245 | 600 | 0.0061 | 0.1682 |
|
| 163 |
+
| 1.0015 | 650 | 0.0086 | 0.1627 |
|
| 164 |
+
| 1.0786 | 700 | 0.0078 | 0.1767 |
|
| 165 |
+
| 1.1556 | 750 | 0.0068 | 0.1773 |
|
| 166 |
+
| 1.2327 | 800 | 0.0065 | 0.1766 |
|
| 167 |
|
| 168 |
### Framework Versions
|
| 169 |
- Python: 3.11.12
|
config_setfit.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"labels": [
|
| 3 |
"no aspect",
|
| 4 |
"aspect"
|
| 5 |
],
|
| 6 |
"span_context": 0,
|
| 7 |
-
"normalize_embeddings": false,
|
| 8 |
"spacy_model": "en_core_web_sm"
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"normalize_embeddings": false,
|
| 3 |
"labels": [
|
| 4 |
"no aspect",
|
| 5 |
"aspect"
|
| 6 |
],
|
| 7 |
"span_context": 0,
|
|
|
|
| 8 |
"spacy_model": "en_core_web_sm"
|
| 9 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 90864192
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c88bfae907ee6f271b3bd804db18485b1c41496d748b20a3bcee40fa32f14427
|
| 3 |
size 90864192
|
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:34bea8c27065e2cbae61d8267fe09f9caff0a9df3d475d7f659a6a2dec1821f3
|
| 3 |
size 3919
|