Downloads · 30 days
47
9% of all-time downloads
oeg/RoBERTaSense-FACIL
RoBERTaSense-FACIL is a text classification model from oeg. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
RoBERTaSense-FACIL (RoBERTa Fine-tuned for Accessible Comprehension In Language) is a Spanish RoBERTa model fine-tuned to assess meaning preservation in Easy-to-Read (E2R) adaptations. Given a pair of texts {original,…
Downloads · 30 days
47
9% of all-time downloads
All-time downloads
535
Public
Parameters
125M
499 MB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
RoBERTaSense-FACIL (RoBERTa Fine-tuned for Accessible Comprehension In Language) is a Spanish RoBERTa model fine-tuned to assess meaning preservation in Easy-to-Read (E2R) adaptations. Given a pair of texts {original, adapted}, it predicts whether the adaptation preserves the meaning of the original.
⚠️ Deprecation notice (base model): This model was fine-tuned from PlanTL-GOB-ES/roberta-base-bne. As for September 2025, this checkpoint is deprecated and no longer actively maintained. For actively maintained Spanish RoBERTa models, please see the BSC-LT organization: https://huggingface.co/BSC-LT
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo = "oeg/RoBERTaSense-FACIL"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
model.eval()
# Example pair
original = "Juan llegó tarde ya que perdió el autobús."
adapted = "Juan perdió el autobús. Por eso, Juan llegó tarde."
# Tokenization
inputs = tokenizer(
original,
adapted,
return_tensors="pt",
truncation=True,
max_length=512
)
# Inference
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
# Meaning preservation score (0–1)
meaning_score = probs[0, 1].item()
print("Meaning Preservation Score:", meaning_score)
PlanTL-GOB-ES/roberta-base-bne (deprecated; see notice above)See How to Use above. For pairwise inputs, encode as sentence pairs:
inputs = tokenizer(text_original, text_adapted, return_tensors="pt", truncation=True, max_length=512)
text1 (original), text2 (adaptation), Label (0/1), neg_type.1 = PRESERVES_MEANING, 0 = DOES_NOT_PRESERVE.shuffle, dropout, mismatch (derangement), paraphrase_distortion, nli_contradiction.Label (random_state=42).tokenizer(text1, text2, truncation=True, max_length=512)
Training regime: fp16 mixed precision (if supported; otherwise fp32)
Arguments:
num_train_epochs=5per_device_train_batch_size=32per_device_eval_batch_size=16learning_rate=2e-5weight_decay=0.01warmup_ratio=0.1evaluation_strategy="epoch", save_strategy="epoch"load_best_model_at_end=True, metric_for_best_model="f1"Optimizer: AdamW
Loss: CrossEntropy (2 logits)
mismatch, paraphrase_distortion, etc.).0.810.840.83Linear(hidden → 2)).BibTeX:
@software{roberta_facil_2025,
title = {RoBERTaSense-FACIL: Meaning Preservation for Easy-to-Read in Spanish},
author = {Diab-Lozano, Isam and Suárez-Figueroa, Mari Carmen},
year = {2025},
url = {https://huggingface.co/oeg/RoBERTaSense-FACIL}
}
APA: Diab-Lozano, Isam and Suárez-Figueroa, Mari Carmen. (2025). RoBERTaSense-FACIL: Meaning Preservation for Easy-to-Read in Spanish. Hugging Face. https://huggingface.co/oeg/RoBERTaSense-FACIL