Downloads · 30 days
8
28% of all-time downloads
uvegesistvan/Hun_Eng_RoBERTa_base_Plain
Hun_Eng_RoBERTa_base_Plain is a machine learning model from uvegesistvan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
Cased fine-tuned XLM-RoBERTa-base model for Hungarian and English, trained on datasets provided by the National Tax and Customs Administration - Hungary (NAV) and translated versions of the same dataset using Google T…
Downloads · 30 days
8
28% of all-time downloads
All-time downloads
29
Public
Parameters
278M
3.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt2.2 GB · 50%
From the Hugging Face model README
Cased fine-tuned XLM-RoBERTa-base model for Hungarian and English, trained on datasets provided by the National Tax and Customs Administration - Hungary (NAV) and translated versions of the same dataset using Google Translate API.
The model is designed to classify sentences as either "comprehensible" or "not comprehensible" (according to Plain Language guidelines):
Fine-tuned version of the original xlm-roberta-base model, trained on a dataset of Hungarian legal and administrative texts. The model was also trained on the translated version of this dataset (via Google Translate API) for English classification.
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| Comprehensible / Label_0 | 0.82 | 0.62 | 0.70 |
| Not comprehensible / Label_1 | 0.71 | 0.88 | 0.78 |
| accuracy | 0.75 | ||
| macro avg | 0.77 | 0.75 | 0.74 |
| weighted avg | 0.76 | 0.75 | 0.74 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| Comprehensible / Label_0 | 0.70 | 0.50 | 0.58 |
| Not comprehensible / Label_1 | 0.63 | 0.80 | 0.70 |
| accuracy | 0.65 | ||
| macro avg | 0.66 | 0.65 | 0.64 |
| weighted avg | 0.66 | 0.65 | 0.64 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("uvegesistvan/Hun_Eng_RoBERTa_base_Plain")
model = AutoModelForSequenceClassification.from_pretrained("uvegesistvan/Hun_Eng_RoBERTa_base_Plain")
If you use the model, please cite the following dissertation (to be submitted for workshop discussion):
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}
}