Downloads · 30 days
9
18% of all-time downloads
dannashao/bert-base-uncased-finetuned-negation_scope
bert-base-uncased-finetuned-negation_scope is a token classification model from dannashao. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of bert-base-uncased on the SEM 2012 shared task corpus (cd-sco). It achieves the following results on the evaluation set: - Loss: 0.0618 - Token Precision: 0.9190 - Token Recall: 0.…
Downloads · 30 days
9
18% of all-time downloads
All-time downloads
50
Public
Parameters
109M
436 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-uncased on the SEM 2012 shared task corpus (cd-sco). It achieves the following results on the evaluation set:
We follow the Augment method described in NegBERT (Khandelwal, et al. 2020). That is, adding a special token ([NEG]) immediately before the predicate:
This is [NEG] not a sentence.
Note that the special token and the predicate is considered a whole. That is, the actual sentence is like
'This' 'is' '[NEG] not' 'a' 'sentence' '.'
See details at https://github.com/dannashao/portfolio-NLP/blob/main/NEG/Fine%20tune%20BERT.ipynb
See details at https://www.clips.ua.ac.be/sem2012-st-neg/
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Token Precision | Token Recall | Token F1 | Span Precision | Span Recall | Span F1 |
|---|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 237 | 0.0624 | 0.9121 | 0.8368 | 0.8728 | 0.5207 | 0.5207 | 0.5207 |
| No log | 2.0 | 474 | 0.0682 | 0.9366 | 0.8311 | 0.8807 | 0.6012 | 0.6012 | 0.6012 |
| 0.0722 | 3.0 | 711 | 0.0618 | 0.9190 | 0.8868 | 0.9026 | 0.625 | 0.625 | 0.625 |