bastao/VeraCruz_PT-BR
Viewer • Updated • 190M • 105k • 16
How to use bastao/PeroVaz_PT-BR_Classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="bastao/PeroVaz_PT-BR_Classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bastao/PeroVaz_PT-BR_Classifier")
model = AutoModelForSequenceClassification.from_pretrained("bastao/PeroVaz_PT-BR_Classifier")The PeroVazPT-BR Classifier is designed to classify text between European Portuguese (PT) and Brazilian Portuguese (BR).
This model is a fine-tuned version of prajjwal1/bert-tiny on the VeraCruz Dataset. The model was trained on the VeraCruz Dataset, a collection of text samples from both languages. The model was trained on a total of 500,000 examples, a evenly split between European Portuguese and Brazilian Portuguese, ensuring a balanced representation of both language variants.
It achieves the following results on an evaluation set of 50,000 examples:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.4772 | 0.06 | 500 | 0.2501 | 0.9080 |
| 0.3412 | 0.13 | 1000 | 0.2275 | 0.9135 |
| 0.3122 | 0.19 | 1500 | 0.2578 | 0.9014 |
| 0.2975 | 0.25 | 2000 | 0.1992 | 0.9396 |
| 0.2877 | 0.31 | 2500 | 0.1791 | 0.9461 |