Instructions to use Mayra13/bert-base-uncased-finetuned-ner-pulmon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mayra13/bert-base-uncased-finetuned-ner-pulmon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Mayra13/bert-base-uncased-finetuned-ner-pulmon")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mayra13/bert-base-uncased-finetuned-ner-pulmon") model = AutoModelForTokenClassification.from_pretrained("Mayra13/bert-base-uncased-finetuned-ner-pulmon", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bert-base-uncased-finetuned-ner-pulmon
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1339
- Precision: 0.9165
- Recall: 0.9495
- F1: 0.9327
- Accuracy: 0.9751
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1572 | 1.0 | 1224 | 0.0878 | 0.9201 | 0.9477 | 0.9337 | 0.9775 |
| 0.0941 | 2.0 | 2448 | 0.0795 | 0.9206 | 0.9579 | 0.9389 | 0.9781 |
| 0.0653 | 3.0 | 3672 | 0.0812 | 0.9306 | 0.9633 | 0.9467 | 0.9805 |
| 0.0563 | 4.0 | 4896 | 0.0795 | 0.9344 | 0.9621 | 0.9480 | 0.9806 |
| 0.0389 | 5.0 | 6120 | 0.0879 | 0.9357 | 0.9635 | 0.9494 | 0.9813 |
| 0.0354 | 6.0 | 7344 | 0.0916 | 0.9293 | 0.9593 | 0.9441 | 0.9802 |
| 0.0293 | 7.0 | 8568 | 0.0891 | 0.9385 | 0.9577 | 0.9480 | 0.9819 |
| 0.0261 | 8.0 | 9792 | 0.0948 | 0.9350 | 0.9540 | 0.9444 | 0.9805 |
| 0.0215 | 9.0 | 11016 | 0.0982 | 0.9398 | 0.9555 | 0.9476 | 0.9816 |
| 0.0184 | 10.0 | 12240 | 0.0994 | 0.9387 | 0.9561 | 0.9473 | 0.9814 |
Framework versions
- Transformers 4.52.3
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.1
- Downloads last month
- 8
Model tree for Mayra13/bert-base-uncased-finetuned-ner-pulmon
Base model
google-bert/bert-base-uncased