Edit model card

Model description

Cased fine-tuned XLM-RoBERTa-base model for Hungarian, trained on a dataset (~13k sentences) provided by National Tax and Customs Administration - Hungary (NAV): Public Accessibilty Programme.

Intended uses & limitations

The model is designed to classify sentences as either "comprehensible" or "not comprehensible" (according to Plain Language guidelines):

  • Label_0 - "comprehensible" - The sentence is in Plain Language.
  • Label_1 - "not comprehensible" - The sentence is not in Plain Language.

Training

Fine-tuned version of the original xlm-roberta-base model, trained on a dataset of Hungarian legal and administrative texts.

Eval results

Class Precision Recall F-Score
Comprehensible / Label_0 0.68 0.67 0.67
Not comprehensible / Label_1 0.69 0.71 0.70
accuracy 0.69
macro avg 0.69 0.69 0.69
weighted avg 0.69 0.69 0.69

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("uvegesistvan/Hun_RoBERTa_Plain")
model = AutoModelForSequenceClassification.from_pretrained("uvegesistvan/Hun_RoBERTa_Plain")

Citation

Bibtex:

@PhDThesis{ Uveges:2024,
  author = {{"U}veges, Istv{\'a}n},
  title  = {K{\"o}z{\'e}rthet{\"o} és automatiz{\'a}ci{\'o} - k{\'i}s{\'e}rletek a jog, term{\'e}szetesnyelv-feldolgoz{\'a}s {\'e}s informatika hat{\'a}r{\'a}n.},
  year   = {2024},
  school = {Szegedi Tudom{\'a}nyegyetem}
}
Downloads last month
10
Safetensors
Model size
278M params
Tensor type
F32
·
Inference API
Unable to determine this model's library. Check the docs .