Token Classification
Transformers
PyTorch
TensorBoard
Safetensors
bert
Generated from Trainer
Eval Results (legacy)
Instructions to use Kriyans/Bert-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kriyans/Bert-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Kriyans/Bert-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Kriyans/Bert-NER") model = AutoModelForTokenClassification.from_pretrained("Kriyans/Bert-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
CHANGED
|
@@ -25,16 +25,16 @@ model-index:
|
|
| 25 |
metrics:
|
| 26 |
- name: Precision
|
| 27 |
type: precision
|
| 28 |
-
value: 0.
|
| 29 |
- name: Recall
|
| 30 |
type: recall
|
| 31 |
-
value: 0.
|
| 32 |
- name: F1
|
| 33 |
type: f1
|
| 34 |
-
value: 0.
|
| 35 |
- name: Accuracy
|
| 36 |
type: accuracy
|
| 37 |
-
value: 0.
|
| 38 |
---
|
| 39 |
|
| 40 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -44,11 +44,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 44 |
|
| 45 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the ner dataset.
|
| 46 |
It achieves the following results on the evaluation set:
|
| 47 |
-
- Loss: 0.
|
| 48 |
-
- Precision: 0.
|
| 49 |
-
- Recall: 0.
|
| 50 |
-
- F1: 0.
|
| 51 |
-
- Accuracy: 0.
|
| 52 |
|
| 53 |
## Model description
|
| 54 |
|
|
@@ -73,15 +73,17 @@ The following hyperparameters were used during training:
|
|
| 73 |
- seed: 42
|
| 74 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 75 |
- lr_scheduler_type: linear
|
| 76 |
-
- num_epochs:
|
| 77 |
|
| 78 |
### Training results
|
| 79 |
|
| 80 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 81 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 82 |
-
| No log | 1.0 |
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
|
|
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
### Framework versions
|
|
|
|
| 25 |
metrics:
|
| 26 |
- name: Precision
|
| 27 |
type: precision
|
| 28 |
+
value: 0.9835852784414629
|
| 29 |
- name: Recall
|
| 30 |
type: recall
|
| 31 |
+
value: 0.9699698679172614
|
| 32 |
- name: F1
|
| 33 |
type: f1
|
| 34 |
+
value: 0.9767301265014201
|
| 35 |
- name: Accuracy
|
| 36 |
type: accuracy
|
| 37 |
+
value: 0.9882015601687542
|
| 38 |
---
|
| 39 |
|
| 40 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 44 |
|
| 45 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the ner dataset.
|
| 46 |
It achieves the following results on the evaluation set:
|
| 47 |
+
- Loss: 0.0334
|
| 48 |
+
- Precision: 0.9836
|
| 49 |
+
- Recall: 0.9700
|
| 50 |
+
- F1: 0.9767
|
| 51 |
+
- Accuracy: 0.9882
|
| 52 |
|
| 53 |
## Model description
|
| 54 |
|
|
|
|
| 73 |
- seed: 42
|
| 74 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 75 |
- lr_scheduler_type: linear
|
| 76 |
+
- num_epochs: 5
|
| 77 |
|
| 78 |
### Training results
|
| 79 |
|
| 80 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 81 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 82 |
+
| No log | 1.0 | 486 | 0.0584 | 0.9738 | 0.9574 | 0.9655 | 0.9821 |
|
| 83 |
+
| 0.116 | 2.0 | 972 | 0.0459 | 0.9751 | 0.9646 | 0.9698 | 0.9849 |
|
| 84 |
+
| 0.0561 | 3.0 | 1458 | 0.0395 | 0.9803 | 0.9668 | 0.9735 | 0.9867 |
|
| 85 |
+
| 0.0446 | 4.0 | 1944 | 0.0353 | 0.9819 | 0.9686 | 0.9752 | 0.9875 |
|
| 86 |
+
| 0.0409 | 5.0 | 2430 | 0.0334 | 0.9836 | 0.9700 | 0.9767 | 0.9882 |
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|