/ Модель

Характеристики

Лицензия
CC BY-NC-SA 4.0
Базовая модель
roberta-eus-euscrawl-base-cased
Опубликована
22 июл 2026

gector-eus

Разметка токеновТекст → label

Модель GECToR на основе RoBERTa для исправления контекстных грамматических ошибок и обнаружения ошибочных слов в баскском тексте.

11скачиваний за 30 дней0лайковвеса обновлены22 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

GECToR-eus — модель исправления грамматических ошибок в баскском языке и обнаружения ошибок в отдельных словах. Её разработал автор репозитория itzune; модель построена на архитектуре GECToR с энкодером RoBERTa и головами предсказания исправлений и ошибок, дообученными на ixa-ehu/roberta-eus-euscrawl-base-cased. Доступен PyTorch-чекпойнт в формате safetensors; базовая модель содержит 110 млн параметров. Обработка выполняется итеративно, до пяти проходов, с предсказанием правок для каждого токена.

Модель предназначена прежде всего для исправления контекстных грамматических ошибок, когда слова сами по себе допустимы, но неверно употреблены по форме или согласованию. Она также выдаёт оценку вероятности ошибки для каждого слова, что позволяет настраивать баланс между точностью и полнотой обнаружения. В README приведены результаты оценки на тестовых наборах Elhuyar; показатель F0.5 достигает 90,2 при пороге вероятности ошибки 0,5.

Модель обучена на одном миллионе пар предложений из корпуса Elhuyar GEC, где синтетически создавались грамматические ошибки. Указанные сценарии применения включают корректуру баскских текстов и визуализацию вероятных ошибок. Лицензия модели — CC-BY-NC-SA-4.0, а обучающий корпус распространяется под CC-BY-NC-SA. Для развёртывания в браузере или на периферийных устройствах автор указывает отдельный ONNX INT4 экспорт.

Сценарии применения

  • исправление грамматических ошибок в баскских предложениях
  • проверка баскских текстов на неверные формы и согласование слов
  • обнаружение ошибочных слов с оценкой вероятности ошибки
  • подсветка вероятных ошибок в интерфейсе проверки текста
  • корректура баскских новостных и редакционных материалов

Ограничения

Модель обучалась преимущественно на синтетических грамматических ошибках в баскском языке, поэтому её результаты на других типах ошибок и текстах могут отличаться. Максимальная длина входа при обучении составляла 128 токенов.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

GECToR-eus

Basque grammatical error correction and real-word error detection via GECToR (seq2edit), fine-tuned on RoBERTa-eus-base.

This is the PyTorch checkpoint. For browser/edge deployment, use the ONNX int4 export (83 MB).

Overview

This model corrects real-word grammar errors in Basque — cases where every word is a valid dictionary word but the inflection is wrong in context (e.g. dio → zaio, zaidalaren → zaidalako, etortzen → etorriko). It also provides per-word error detection via a dedicated detect head (P(INCORRECT) per token).

PropertyValue
ArchitectureGECToR (RoBERTa encoder + label/detect heads)
Base modelixa-ehu/roberta-eus-euscrawl-base-cased (110M params, 12L/768H)
Training data1M sentence pairs from Elhuyar GEC corpus (CC-BY-NC-SA)
Labels5,001 ($KEEP, $DELETE, $REPLACE_x, $APPEND_x, etc.)
Detect labels3 ($CORRECT, $INCORRECT, <PAD>)
Checkpoint size487 MB (fp32 safetensors)

Performance

Evaluated on the Elhuyar Dem_single (221 errorful sentences) and Dem_none (250 clean sentences) benchmarks:

min_error_probF0.5Exact matchFalse positive rate
0.090.082.8% (183/221)4.4% (11/250)
0.290.082.8% (183/221)4.0% (10/250)
0.590.281.4% (180/221)3.6% (9/250)
0.890.876.9% (170/221)2.8% (7/250)

For comparison, GECToR-2024 (English, RoBERTa-large 300M) scores F0.5=72.9 on BEA-dev.

Usage

This model uses the gotutiyan/gector framework. Install it and use the CLI:

pip install gector

# Predict (correct grammar)
python -m gector.cli.predict \
  --input input.txt \
  --restore_dir itzune/gector-eus \
  --verb_file verb-form-vocab.txt \
  --out output.txt \
  --min_error_prob 0.5

Or load in Python:

from gector import GECToR

model = GECToR.from_pretrained("itzune/gector-eus")
# model.bert           → RoBERTa encoder
# model.label_proj_layer  → label head (→ 5000 classes)
# model.d_proj_layer      → detect head (→ 2 classes: CORRECT, INCORRECT)

How it works

GECToR uses an edit-based approach — instead of generating text, it predicts a label per token:

  • $KEEP — leave this word unchanged
  • $DELETE — remove this word
  • $REPLACE_xxx — replace this word with xxx
  • $APPEND_xxx — append xxx after this word

The model runs iteratively (up to 5 passes): each pass applies the predicted edits, then re-runs on the corrected text until no more changes are needed.

The detect head provides an independent P(INCORRECT) per token — a confidence score for whether each word is wrong. This is used as a threshold (min_error_prob) to control the precision/recall tradeoff, and also powers error detection visualizations.

Training data — Elhuyar/Orai GEC corpus

The model was trained on the Elhuyar GEC corpus, created by the Elhuyar Foundation (now Orai NLP) and distributed under CC-BY-NC-SA.

  • Source: Correct sentences were extracted from a Basque news corpus compiled from Berria.eus, Argia.eus, and the Tokikom.eus proximity-media network (500,015 news items, 4,927,748 sentences, ~66M words).
  • Error generation: Synthetic grammar errors (R1–R4: tense, verb agreement/argument, case/agreement, suffix) were introduced by rule application.
  • Scale: 9.3M sentence pairs total (4.71M with errors, 5.29M clean). We trained on 1M pairs.
  • Distribution: Orai.eus resources page / HiTZ corpus page

ℹ️ This is distinct from the Elhuyar web corpus (186M tokens, Leturia 2014), a separate general web-crawl resource on Orai's resources page that is not the source of the GEC data.

Training

Related

Credits

License

CC-BY-NC-SA 4.0

This model's weights are a derivative work of the Elhuyar GEC corpus, which is licensed under CC-BY-NC-SA. Under the ShareAlike clause, the trained model weights are distributed under the same license:

  • NC (NonCommercial) — You may not use this model for commercial purposes.
  • SA (ShareAlike) — If you remix, transform, or build upon this model, you must distribute your contributions under the same license.

The base encoder (RoBERTa-eus-base, Apache 2.0) and the GECToR architecture (gotutiyan/gector, MIT) are separately licensed, but the trained weights inherit the CC-BY-NC-SA restriction from the training data.

The training scripts and ONNX export code (itzune/gector-eus) are MIT licensed.

Citation

If you use this model, please cite the original works:

@inproceedings{beloki2020gec,
  title     = {Grammatical Error Correction for Basque through a seq2seq neural architecture and synthetic examples},
  author    = {Beloki, Zuhaitz and Saralegi, Xabier and Ceberio, Klara and Corral, Ander},
  booktitle = {Proceedings of the 36th Conference of the Spanish Society for Natural Language Processing (SEPLN 2020)},
  address   = {Granada, Spain},
  year      = {2020}
}

@article{omelianchuk2020gector,
  title={GECToR--Grammatical Error Correction: Tag, Not Rewrite},
  author={Omelianchuk, Kostiantyn and Atrasevych, Vitaly and Chernodub, Artem and Skurzhanskyi, Oleksandr},
  journal={arXiv preprint arXiv:2005.12592},
  year={2020}
}

@article{artetxe2022roberteus,
  title={Roberteus: a monolingual basque language model},
  author={Artetxe, Mikel and Adebisi, Iyanuoluwa and Azkarate, Mikel and Ceberio, Itziar and Campos, Jon Ander and Esnal, Gorka and Fernandez de Landa, Oscar and Goikoetxea, Joseba and Gutierrez, Aitor and Igondi, Maite and others},
  journal={Procesamiento del Lenguaje Natural},
  volume={69},
  pages={27--34},
  year={2022}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · token-classification

Нельзя запустить

Архитектура GECToR неизвестна transformers в образе рантайма.

Класс архитектуры
GECToR
Ревизия весов
85b7bf7

0 моделей