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,17 +73,22 @@ 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 | 486 | 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|
|
|
|
| 25 |
metrics:
|
| 26 |
- name: Precision
|
| 27 |
type: precision
|
| 28 |
+
value: 0.9952566491614433
|
| 29 |
- name: Recall
|
| 30 |
type: recall
|
| 31 |
+
value: 0.9982668388499966
|
| 32 |
- name: F1
|
| 33 |
type: f1
|
| 34 |
+
value: 0.9967594713357425
|
| 35 |
- name: Accuracy
|
| 36 |
type: accuracy
|
| 37 |
+
value: 0.9982867445455388
|
| 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.0041
|
| 48 |
+
- Precision: 0.9953
|
| 49 |
+
- Recall: 0.9983
|
| 50 |
+
- F1: 0.9968
|
| 51 |
+
- Accuracy: 0.9983
|
| 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: 10
|
| 77 |
|
| 78 |
### Training results
|
| 79 |
|
| 80 |
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 81 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 82 |
+
| No log | 1.0 | 486 | 0.0354 | 0.9822 | 0.9680 | 0.9750 | 0.9875 |
|
| 83 |
+
| 0.04 | 2.0 | 972 | 0.0328 | 0.9846 | 0.9700 | 0.9772 | 0.9886 |
|
| 84 |
+
| 0.0362 | 3.0 | 1458 | 0.0241 | 0.9957 | 0.9719 | 0.9837 | 0.9918 |
|
| 85 |
+
| 0.0302 | 4.0 | 1944 | 0.0163 | 0.9970 | 0.9787 | 0.9877 | 0.9937 |
|
| 86 |
+
| 0.0249 | 5.0 | 2430 | 0.0134 | 0.9914 | 0.9888 | 0.9901 | 0.9949 |
|
| 87 |
+
| 0.0188 | 6.0 | 2916 | 0.0092 | 0.9929 | 0.9934 | 0.9932 | 0.9965 |
|
| 88 |
+
| 0.0145 | 7.0 | 3402 | 0.0070 | 0.9934 | 0.9952 | 0.9943 | 0.9971 |
|
| 89 |
+
| 0.0115 | 8.0 | 3888 | 0.0060 | 0.9941 | 0.9966 | 0.9954 | 0.9976 |
|
| 90 |
+
| 0.009 | 9.0 | 4374 | 0.0048 | 0.9955 | 0.9973 | 0.9964 | 0.9981 |
|
| 91 |
+
| 0.0072 | 10.0 | 4860 | 0.0041 | 0.9953 | 0.9983 | 0.9968 | 0.9983 |
|
| 92 |
|
| 93 |
|
| 94 |
### Framework versions
|