Downloads · 30 days
10
13% of all-time downloads
mariadelcarmenramirez/metaphor-cat-mdeberta-weights
metaphor-cat-mdeberta-weights is a token classification model from mariadelcarmenramirez. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of microsoft/mdeberta-v3-base on the Catalan metaphor detection dataset metaphor-catalan.
Downloads · 30 days
10
13% of all-time downloads
All-time downloads
75
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
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 v3-based transformer fine-tuned for token-level metaphor detection in Catalan.
The model identifies tokens that are part of metaphorical expressions using a BIO tagging scheme:
The model was fine-tuned using class-weighted loss to address class imbalance in the dataset, where metaphor tokens are significantly less frequent than literal tokens.
This model is suitable for research and experimentation in figurative language detection, computational linguistics, and Catalan NLP tasks.
Intended uses:
Limitations:
Training dataset: metaphor-catalan
The dataset contains Catalan sentences annotated for metaphorical language using token-level labels.
Example annotation structure:
tokens: tokenized sentencetags: BIO labels indicating metaphor spansLabel set used during training:
OB-METAPHORI-METAPHORTo mitigate strong label imbalance, class weights were applied during training.
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 66 | 0.5138 | 0.1255 | 0.7143 | 0.2135 | 0.7356 |
| 0.7433 | 2.0 | 132 | 0.3932 | 0.2897 | 0.7381 | 0.4161 | 0.8959 |
| 0.7433 | 3.0 | 198 | 0.4049 | 0.3974 | 0.7381 | 0.5167 | 0.9306 |
| 0.2768 | 4.0 | 264 | 0.5224 | 0.5833 | 0.6667 | 0.6222 | 0.9593 |
| 0.1325 | 5.0 | 330 | 0.4865 | 0.5439 | 0.7381 | 0.6263 | 0.9557 |
| 0.1325 | 6.0 | 396 | 0.5918 | 0.5870 | 0.6429 | 0.6136 | 0.9593 |