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")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Kriyans/Bert-NER") model = AutoModelForTokenClassification.from_pretrained("Kriyans/Bert-NER") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +15 -13
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -20,21 +20,21 @@ model-index:
|
|
| 20 |
name: ner
|
| 21 |
type: ner
|
| 22 |
config: indian_names
|
| 23 |
-
split:
|
| 24 |
args: indian_names
|
| 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 [bert-base-uncased](https://huggingface.co/bert-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.9837
|
| 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 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
|
|
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
### Framework versions
|
|
|
|
| 20 |
name: ner
|
| 21 |
type: ner
|
| 22 |
config: indian_names
|
| 23 |
+
split: test
|
| 24 |
args: indian_names
|
| 25 |
metrics:
|
| 26 |
- name: Precision
|
| 27 |
type: precision
|
| 28 |
+
value: 0.9752319346327347
|
| 29 |
- name: Recall
|
| 30 |
type: recall
|
| 31 |
+
value: 0.9923783128356141
|
| 32 |
- name: F1
|
| 33 |
type: f1
|
| 34 |
+
value: 0.9837304142519855
|
| 35 |
- name: Accuracy
|
| 36 |
type: accuracy
|
| 37 |
+
value: 0.9730393535444438
|
| 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 [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the ner dataset.
|
| 46 |
It achieves the following results on the evaluation set:
|
| 47 |
+
- Loss: 0.1205
|
| 48 |
+
- Precision: 0.9752
|
| 49 |
+
- Recall: 0.9924
|
| 50 |
- F1: 0.9837
|
| 51 |
+
- Accuracy: 0.9730
|
| 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 |
+
| 0.0825 | 1.0 | 501 | 0.1031 | 0.9600 | 0.9917 | 0.9756 | 0.9770 |
|
| 83 |
+
| 0.0337 | 2.0 | 1002 | 0.1491 | 0.9615 | 0.9942 | 0.9776 | 0.9648 |
|
| 84 |
+
| 0.0285 | 3.0 | 1503 | 0.1169 | 0.9754 | 0.9913 | 0.9833 | 0.9723 |
|
| 85 |
+
| 0.0249 | 4.0 | 2004 | 0.1054 | 0.9724 | 0.9921 | 0.9821 | 0.9783 |
|
| 86 |
+
| 0.0232 | 5.0 | 2505 | 0.1205 | 0.9752 | 0.9924 | 0.9837 | 0.9730 |
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 435605316
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e0244434945ff5ece9135913ef6d72d16f68f4c9b42c7d0817dc2b502ff9fe5
|
| 3 |
size 435605316
|