Downloads · 30 days
6
1% of all-time downloads
i-be-snek/distilbert-base-uncased-finetuned-ner-exp_B
distilbert-base-uncased-finetuned-ner-exp_B is a token classification model from i-be-snek. 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.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
6
1% of all-time downloads
All-time downloads
464
Public
Repo size
803 MB
Likes
0
Public
Click a slice to open those files.
.h5266 MB · 98%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on the English subset of the NER Babelscape/multinerd dataset.
It achieves the following results on the validation set:
distilbert-base-uncased-finetuned-ner-exp_B is a Named Entity Recognition model finetuned on distilbert-base-uncased. This model is uncased, so it makes no distinction between "sarah" and "Sarah". The dataset it was fine-tuned on was modified. Only five entities were considered: Person (PER), Animal (ANIM), Organization (ORG), Location (LOC), and Disease (DIS). The dataset was modified further so that all other named entities not included in this list were swapped with the '0' label ID. Tokens IDs were also re-indexed.
This model has been evaluated on the English subset of the test set of Babelscape/multinerd with modifications where all tags other than (0) Person (PER), Animal (ANIM), Organization (ORG), Location (LOC), and Disease (DIS) were replaced with the 'O' tag. The label indices were also reset and the dataset was transformed accordingly. You can preprocess the dataset in the same way with any custom set of tags using the script in this GitHub repository
| metric | value |
|---|---|
| precision | 0.936296 |
| recall | 0.952485 |
| f1 | 0.944321 |
| accuracy | 0.991344 |
| metric/tag | ANIM | DIS | LOC | ORG | PER |
|---|---|---|---|---|---|
| precision | 0.674603 | 0.695304 | 0.966669 | 0.954712 | 0.989048 |
| recall | 0.794888 | 0.799736 | 0.967232 | 0.942883 | 0.994872 |
| f1 | 0.729823 | 0.743873 | 0.966951 | 0.948761 | 0.991952 |
| number | 3208 | 1518 | 24048 | 6618 | 10530 |
All scripts for training can be found in this GitHub repository.
The model had early stopped watching its val_loss.
The following hyperparameters were used during training:
optimizer:
{
"name": "AdamWeightDecay",
"learning_rate": 2e-05,
"decay": 0.0,
"beta_1": 0.9,
"beta_2": 0.999,
"epsilon": 1e-07,
"amsgrad": False,
"weight_decay_rate": 0.0,
}
training_precision: float32
| Train Loss | Validation Loss | Train Precision | Train Recall | Train F1 | Train Accuracy | Epoch |
|---|---|---|---|---|---|---|
| 0.0426 | 0.0401 | 0.9159 | 0.9284 | 0.9221 | 0.9860 | 0 |
| 0.0163 | 0.0451 | 0.9275 | 0.9235 | 0.9255 | 0.9865 | 1 |
| 0.0084 | 0.0587 | 0.9185 | 0.9240 | 0.9213 | 0.9857 | 2 |
| Named Entity | precision | recall | f1 |
|---|---|---|---|
| ANIM | 0.661526 | 0.741578 | 0.699269 |
| DIS | 0.722194 | 0.763900 | 0.742462 |
| LOC | 0.965829 | 0.974215 | 0.970004 |
| ORG | 0.949038 | 0.906056 | 0.927049 |
| PER | 0.988075 | 0.989184 | 0.988629 |
| Named Entity | precision | recall | f1 |
|---|---|---|---|
| ANIM | 0.704151 | 0.646720 | 0.674214 |
| DIS | 0.750533 | 0.756379 | 0.753445 |
| LOC | 0.969905 | 0.973037 | 0.971468 |
| ORG | 0.930323 | 0.932971 | 0.931645 |
| PER | 0.991814 | 0.989082 | 0.990446 |
| Named Entity | precision | recall | f1 |
|---|---|---|---|
| ANIM | 0.689281 | 0.675532 | 0.682337 |
| DIS | 0.703917 | 0.786731 | 0.743024 |
| LOC | 0.975097 | 0.960122 | 0.967552 |
| ORG | 0.928553 | 0.931677 | 0.930112 |
| PER | 0.992620 | 0.988163 | 0.990387 |