Instructions to use AlexStamp/bert-finetuned-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlexStamp/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="AlexStamp/bert-finetuned-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AlexStamp/bert-finetuned-ner") model = AutoModelForTokenClassification.from_pretrained("AlexStamp/bert-finetuned-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update ReadMe.md, remove validation metrics from intro
Browse files
README.md
CHANGED
|
@@ -28,12 +28,7 @@ A fine-tuned version of [`bert-base-cased`](https://huggingface.co/bert-base-cas
|
|
| 28 |
for Named Entity Recognition (NER), trained on the CoNLL-2003 English dataset as part
|
| 29 |
of working through the [Hugging Face LLM Course](https://huggingface.co/learn/llm-course),
|
| 30 |
Chapter 7.
|
| 31 |
-
|
| 32 |
-
- Loss: 0.0599
|
| 33 |
-
- Precision: 0.9319
|
| 34 |
-
- Recall: 0.9507
|
| 35 |
-
- F1: 0.9412
|
| 36 |
-
- Accuracy: 0.9867
|
| 37 |
|
| 38 |
## Model details
|
| 39 |
|
|
@@ -93,7 +88,7 @@ The following hyperparameters were used during training:
|
|
| 93 |
|
| 94 |
### Training results
|
| 95 |
|
| 96 |
-
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1
|
| 97 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 98 |
| 0.0759 | 1.0 | 1756 | 0.0651 | 0.8905 | 0.9310 | 0.9103 | 0.9812 |
|
| 99 |
| 0.0355 | 2.0 | 3512 | 0.0681 | 0.9321 | 0.9473 | 0.9397 | 0.9853 |
|
|
|
|
| 28 |
for Named Entity Recognition (NER), trained on the CoNLL-2003 English dataset as part
|
| 29 |
of working through the [Hugging Face LLM Course](https://huggingface.co/learn/llm-course),
|
| 30 |
Chapter 7.
|
| 31 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## Model details
|
| 34 |
|
|
|
|
| 88 |
|
| 89 |
### Training results
|
| 90 |
|
| 91 |
+
| Training Loss | Epoch | Step | Validation Loss | Validation Precision | Validation Recall | Validation F1 | Validation Accuracy |
|
| 92 |
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 93 |
| 0.0759 | 1.0 | 1756 | 0.0651 | 0.8905 | 0.9310 | 0.9103 | 0.9812 |
|
| 94 |
| 0.0355 | 2.0 | 3512 | 0.0681 | 0.9321 | 0.9473 | 0.9397 | 0.9853 |
|