mariadelcarmenramirez/metaphor-catalan
Viewer • Updated • 657 • 14
How to use mariadelcarmenramirez/metaphor-cat-roberta-large-no-weights with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="mariadelcarmenramirez/metaphor-cat-roberta-large-no-weights") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("mariadelcarmenramirez/metaphor-cat-roberta-large-no-weights")
model = AutoModelForTokenClassification.from_pretrained("mariadelcarmenramirez/metaphor-cat-roberta-large-no-weights", device_map="auto")This model is a fine-tuned version of projecte-aina/roberta-large-ca-v2 on the Catalan metaphor detection dataset metaphor-catalan.
It achieves the following results on the evaluation set:
This model is a RoBERTa-based transformer fine-tuned to classify Catalan sentences as containing metaphors or not. It is suitable for research and applications in computational linguistics, natural language understanding, and metaphor detection in Catalan text.
Intended uses:
Limitations:
Training dataset: metaphor-catalan
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 66 | 0.1558 | 0.0 | 0.0 | 0.0 | 0.9498 |
| 0.2326 | 2.0 | 132 | 0.1153 | 0.76 | 0.4524 | 0.5672 | 0.9653 |
| 0.2326 | 3.0 | 198 | 0.1102 | 0.9130 | 0.5 | 0.6462 | 0.9725 |
| 0.0765 | 4.0 | 264 | 0.1257 | 0.88 | 0.5238 | 0.6567 | 0.9725 |
| 0.0322 | 5.0 | 330 | 0.1317 | 0.9130 | 0.5 | 0.6462 | 0.9725 |
Base model
projecte-aina/roberta-large-ca-v2