Downloads · 30 days
502
30% of all-time downloads
ELiRF/RoBERTa-es-mental-large
RoBERTa-es-mental-large is a fill-mask model from ELiRF. Use it when you need the model to fill a missing word. It is set up for transformers.
RoBERTa-es-mental-large is a Spanish domain-adapted language model specialized in mental health text analysis. The model is designed to capture linguistic, emotional, and semantic patterns commonly found in mental hea…
Downloads · 30 days
502
30% of all-time downloads
All-time downloads
1.6K
Public
Parameters
355M
62.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
RoBERTa-es-mental-large is a Spanish domain-adapted language model specialized in mental health text analysis. The model is designed to capture linguistic, emotional, and semantic patterns commonly found in mental health–related narratives shared on social media and online support communities.
It is based on a RoBERTa-large architecture and supports input sequences of up to 512 tokens, making it suitable for full-context (user-level) and context-level classification scenarios. The model was obtained through domain-adaptive pre-training (DAP) on a large corpus of mental health–related texts translated into Spanish from Reddit communities focused on psychological support and mental health discussions.
RoBERTa-es-mental-large is released as a foundational model and does not include task-specific fine-tuning.
This model is intended for research purposes in the mental health NLP domain.
The model can be used directly as a language encoder or feature extractor for Spanish mental health–related texts, particularly in settings where the full user context fits within the standard Transformer input length.
RoBERTa-es-mental-large is primarily intended to be fine-tuned for downstream tasks such as:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("ELiRF/RoBERTa-es-mental-large")
model = AutoModel.from_pretrained("ELiRF/RoBERTa-es-mental-large")
inputs = tokenizer(
"Ejemplo de texto relacionado con salud mental.",
return_tensors="pt",
truncation=True,
max_length=512
)
outputs = model(**inputs)
The model was domain-adapted using a merged corpus composed of:
All texts were automatically translated into Spanish using neural machine translation. The resulting dataset contains approximately 1.9 million posts from multiple mental health-related communities (e.g., depression, anxiety, suicide ideation, loneliness), providing broad coverage of informal mental health discourse.
The model was trained using domain-adaptive pre-training (DAP) with a masked language modeling objective.
No task-specific fine-tuning is included in this checkpoint.
When fine-tuned on Spanish mental health benchmarks, RoBERTa-es-mental-large shows competitive performance and improves upon the state of the art in full-context (user-level) mental health classification tasks.
The associated paper is currently under review and will be added to this model card once the publication process is completed.
ELiRF research group (VRAIN, Universitat Politècnica de València)