/ Модель

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

Контекст
512 токенов
Параметры
205 млн
Лицензия
Apache 2.0
Архитектура
bert · dense
Базовая модель
bert-base-multilingual-cased
Библиотека
transformers
Опубликована
12 сен 2026

scribe-usage-classifier

Разметка токеновТекст → label3 профессии

Модель размечает контекстно-зависимый выбор кандзи и каны в контролируемых словах официальных документов на японском языке.

51скачиваний за 30 дней0лайковвеса обновлены27 окт 2026

Бенчмарки

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

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

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

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

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

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

NagaYu разработала scribe-usage-classifier — модель разметки токенов для Scribe, системы проверки контекстного выбора кандзи и каны в официальных японских документах. Модель дообучена на многоязычном BERT google-bert/bert-base-multilingual-cased и содержит 205,1 млн параметров. Она присваивает субтокенам метки TARGET-KANA или TARGET-KANJI для контролируемых слов, используя контекст, даже если исходное написание ошибочно. Контекст модели — до 512 токенов.

Модель предназначена для помощи авторам официальных и публичных документов на японском языке: она выявляет варианты написания, зависящие от употребления, а Scribe дополняет результат ссылкой на нормативное положение. На отложенном тесте точность по фрагментам составила 0,818; на диагностическом наборе, пересекающемся с обучающими данными, — 0,947. Модель обучена на небольшом синтетическом корпусе официально-деловых предложений и не рассчитана на производственное применение или произвольный естественный текст. Словарь контролируемых слов ограничен; другие орфографические проверки выполняет детерминированный слой Scribe. Лицензия — Apache-2.0.

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

  • проверка выбора кандзи или каны в официальных японских документах
  • поиск контекстно-зависимых орфографических вариантов в публичных документах
  • рекомендации по нормативному написанию контролируемых японских слов

Ограничения

Обучена на небольшом синтетическом корпусе и не является производственной моделью для произвольного естественного текста. Проверяет только ограниченный словарь формальных существительных и вспомогательных глаголов; для остальных орфографических случаев нужны правила Scribe.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

scribe-usage-classifier

The model layer of Scribe, a context-aware kanji/kana checker for Japanese official documents.

Official-writing norms require the same word to be written differently depending on its syntactic role — a formal noun こと in kana, the substantive 事 in kanji. Uniform dictionary replacement collapses each word to one spelling and is structurally forced to get the other usage wrong. This model judges each occurrence of a monitored word fromits context and decides kana or kanji; the Scribe pipeline then attaches the normative clause as the rationale. A dictionary or regex cannot make this call, because the input surface may itself be the error.

Measured span accuracy on the held-out test split (split by document): 0.818 overall, 0.800 on the hard set of words that appear in both usages. Prooff-of-concept scale: finetuned on a small synthetic corpus (CC0), so read these as evidence the distinction is learnable from context — not as production accuracy on natural text. Full project, benchmarks against uniform replacement (prh) and a jōyō-kanji checker, and usage: https://github.com/NagaYu/scribekoyobun

  • Part of the Scribe project · 💻 GitHub · 🤗 Space · 📚 Dataset
  • Base model: google-bert/bert-base-multilingual-cased (~178M params, within the 0.1–0.2B target). Chosen because its fast tokenizer returns offset_mapping, which the span-labeling pipeline needs.

Labels

Per subtoken: O / TARGET-KANA / TARGET-KANJI. Subtokens overlapping a monitored word's span receive the usage label; the input surface may be correct or wrong (the training data includes flipped errors), so the model must learn from context, not surface.

How to use

The model is meant to be driven through the Scribe pipeline, which finds the monitored words and attaches the normative clause as rationale:

from scribe import ScribeChecker
checker = ScribeChecker(model_dir="NagaYu/scribe-usage-classifier")
for f in checker.check("確認する事がある。重い物を運ぶ。"):
    print(f.surface, "→", f.recommended_surface, "|", f.message)

Raw transformers use is also possible (AutoModelForTokenClassification), but you then need to locate the target spans yourself; the Scribe repo does this with a morphological analyzer.

Training data

Fine-tuned on the Scribe usage-judgment dataset (NagaYu/scribe-koyobun-usage), a synthetic seed corpus (CC0) of official-style sentences plus flip-generated errors, split by document. The dataset separates a hard split (words appearing in both usages) as the headline diagnostic.

Evaluation

Span-level accuracy (predicted kind vs. gold kind):

splitspan accuracyhard-set span accuracy
test (held out by document)0.8180.800
hard (diagnostic, overlaps train)0.9470.947

Evaluate test for generalization; hard cross-cuts the training split and is optimistic. For the project-level comparison against uniform replacement (prh) and a jōyō-kanji checker, see the benchmarks.

Intended use & limitations

  • Intended: assisting drafters of Japanese official/public documents by flagging context-dependent kanji/kana choices with a cited clause of the norm; output is phrased as "the norm would write it this way," never as a verdict on the writer.
  • Proof-of-concept scale: trained on a small synthetic corpus. It demonstrates that the distinction is learnable from context, but is not production-grade on natural text. For real deployment, train on a licensed real corpus (see scribe/collect.py) and expand the monitored vocabulary (data/norms/lexicon.json).
  • Coverage: limited to the monitored formal nouns and auxiliary verbs; other orthographic issues (numbers, punctuation, okurigana) are handled by Scribe's deterministic rule layer, not this model.
  • The base model is multilingual; a dedicated Japanese encoder may improve quality if paired with a custom offset aligner.

License

Apache-2.0. The normative documents' rights belong to their issuers; this model references clause numbers only.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
BertForTokenClassification
Ревизия весов
9f335ac

0 моделей