gender-classifier
Collection
7 items • Updated
How to use IsGarrido/gender_classifier_es_roberta_base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="IsGarrido/gender_classifier_es_roberta_base") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("IsGarrido/gender_classifier_es_roberta_base")
model = AutoModelForSequenceClassification.from_pretrained("IsGarrido/gender_classifier_es_roberta_base")This model was fine-tuned to classify text into: male, female, neutral
| Metric | Value |
|---|---|
| loss | 0.4235 |
| accuracy | 0.9050 |
| f1 | 0.9050 |
| precision | 0.9050 |
| recall | 0.9050 |
| runtime | 2.1530 |
| samples_per_second | 2786.8420 |
| steps_per_second | 43.6610 |
| epoch | 3.0000 |
from transformers import pipeline
# Load the model directly from this folder or HF Hub
classifier = pipeline('text-classification', model='.')
print(classifier('She is a great engineer.'))
Base model
PlanTL-GOB-ES/roberta-base-bne