mariadelcarmenramirez/metaphor-catalan
Viewer • Updated • 657 • 10
How to use mariadelcarmenramirez/metaphor-cat-mdeberta-no-weights with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="mariadelcarmenramirez/metaphor-cat-mdeberta-no-weights", device_map="auto") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("mariadelcarmenramirez/metaphor-cat-mdeberta-no-weights")
model = AutoModelForTokenClassification.from_pretrained("mariadelcarmenramirez/metaphor-cat-mdeberta-no-weights", device_map="auto")This model is a fine-tuned version of microsoft/mdeberta-v3-base on the Catalan metaphor detection dataset metaphor-catalan.
It achieves the following results on the evaluation set:
This model is a DeBERTa-based transformer fine-tuned for token-level metaphor detection in Catalan. It predicts whether each token in a sentence belongs to a metaphorical expression. The model is suitable for research and applications in computational linguistics, natural language understanding, and figurative language 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.1620 | 0.0 | 0.0 | 0.0 | 0.9498 |
| 0.2683 | 2.0 | 132 | 0.1288 | 0.6471 | 0.2619 | 0.3729 | 0.9557 |
| 0.2683 | 3.0 | 198 | 0.1193 | 0.75 | 0.4286 | 0.5455 | 0.9641 |
| 0.0938 | 4.0 | 264 | 0.1242 | 0.7391 | 0.4048 | 0.5231 | 0.9629 |
| 0.0545 | 5.0 | 330 | 0.1220 | 0.75 | 0.4286 | 0.5455 | 0.9641 |
Base model
microsoft/mdeberta-v3-base