peluz/lener_br
Updated • 278 • 39
How to use CassioBN/BERTimbau-base_LeNER-Br with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="CassioBN/BERTimbau-base_LeNER-Br") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("CassioBN/BERTimbau-base_LeNER-Br")
model = AutoModelForTokenClassification.from_pretrained("CassioBN/BERTimbau-base_LeNER-Br")This model is a fine-tuned version of neuralmind/bert-base-portuguese-cased on the lener_br dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.2037 | 1.0 | 979 | nan | 0.7910 | 0.8762 | 0.8314 | 0.9721 |
| 0.0308 | 2.0 | 1958 | nan | 0.7747 | 0.8663 | 0.8180 | 0.9698 |
| 0.02 | 3.0 | 2937 | nan | 0.8316 | 0.8911 | 0.8603 | 0.9801 |
| 0.0133 | 4.0 | 3916 | nan | 0.8038 | 0.8812 | 0.8407 | 0.9728 |
| 0.0111 | 5.0 | 4895 | nan | 0.8253 | 0.8707 | 0.8474 | 0.9753 |
| 0.0078 | 6.0 | 5874 | nan | 0.8235 | 0.8779 | 0.8498 | 0.9711 |
| 0.0057 | 7.0 | 6853 | nan | 0.8174 | 0.8768 | 0.8461 | 0.9760 |
| 0.0032 | 8.0 | 7832 | nan | 0.8113 | 0.8845 | 0.8463 | 0.9769 |
| 0.0027 | 9.0 | 8811 | nan | 0.8344 | 0.8867 | 0.8597 | 0.9767 |
| 0.0023 | 10.0 | 9790 | nan | 0.8318 | 0.8839 | 0.8571 | 0.9754 |
metrics={'test_loss': 0.0710107609629631, 'test_precision': 0.8785578747628083, 'test_recall': 0.9138157894736842, 'test_f1': 0.8958400515962593, 'test_accuracy': 0.9884423662270061, 'test_runtime': 12.4395, 'test_samples_per_second': 111.741, 'test_steps_per_second': 13.988})
Base model
neuralmind/bert-base-portuguese-cased