Downloads · 30 days
11
19% of all-time downloads
mariadelcarmenramirez/metaphor-cat-roberta-large-weights
metaphor-cat-roberta-large-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 apache-2.0.
This model is a fine-tuned version of projecte-aina/roberta-large-ca-v2 on the Catalan metaphor detection dataset metaphor-catalan.
Downloads · 30 days
11
19% of all-time downloads
All-time downloads
59
Public
Parameters
354M
2.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
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-large transformer trained for Catalan and fine-tuned for token-level metaphor detection.
The model performs sequence labeling to identify metaphorical expressions using a BIO tagging scheme:
The base model was pretrained as part of the AINA project for Catalan NLP.
During fine-tuning, class-weighted cross-entropy loss was applied to mitigate the strong class imbalance in the dataset, where metaphor tokens are much less frequent than literal tokens.
This model is suitable for research in figurative language detection, computational linguistics, and Catalan NLP applications.
Intended uses:
Limitations:
This model should be used as a support tool rather than a definitive metaphor detection system.
Training dataset:
metaphor-catalan
The dataset contains Catalan sentences annotated for metaphorical language at the token level.
Example dataset structure:
tokens: tokenized sentencetags: BIO labels identifying metaphor spansLabel set used during training:
OB-METAPHORI-METAPHORThe dataset is highly imbalanced, with many more literal tokens than metaphor tokens.
To address this imbalance, class weights were applied during training.