/ Модель

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

Контекст
256 токенов
Параметры
2,6 млн
Лицензия
CC BY-SA 4.0
Архитектура
bert · dense
Библиотека
transformers.js
Опубликована
11 ноя 2026

katip-mask-nano

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

Компактная BERT-модель для распознавания личных имён в турецких документах и локального маскирования персональных данных.

194скачиваний за 30 дней0лайковвеса обновлены20 ноя 2026

Бенчмарки

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

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

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

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

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

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

Katip Mask Nano tr v1.1 — компактная модель распознавания личных имён в турецком тексте, разработанная для инструмента Katip Mask. Это двухслойная BERT-модель с 2,6 млн параметров, размером около 2,5 МБ в формате int8 ONNX, рассчитанная на запуск в браузере или на CPU ноутбука; контекст — до 256 токенов. Она размечает сущности на уровне токенов и служит компонентом локального выявления персональных данных для редактирования и обезличивания документов по требованиям KVKK.

Модель предназначена прежде всего для юридических документов и текстов на турецком языке. В версии 1.1 улучшено распознавание иностранных имён, встречающихся в турецких документах. По приведённым в карточке результатам, на некоторых наборах она уступает более крупным вариантам Katip Mask, а повышение полноты для иностранных имён сопровождается ростом ложных срабатываний. Оценки основаны в том числе на синтетических данных; авторы рекомендуют проверять результат маскирования вручную. Модель выпущена по лицензии CC BY-SA 4.0.

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

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

Ограничения

На повседневной прозе распознаёт имена хуже более крупных вариантов Katip Mask; расширенное выявление иностранных имён увеличивает число ложных срабатываний. Оценки частично получены на синтетических данных, поэтому результат маскирования следует проверять вручную.

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

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

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

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

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

Открыть на Hugging Face

Katip Mask Nano · tr v1.1

KVKK-Bench

Türkçe: Tarayıcıda ya da dizüstü bilgisayarda çalışan 2,5 MB'lık Türkçe ad soyad tanıma modeli; avukatlar için KVKK kişisel veri maskeleme ve anonimleştirme aracı Katip'in varsayılan modeli.

A 2.5 MB Turkish person-name tagger (int8 ONNX) that runs in the browser or on a laptop CPU, next to Katip's rule-based PII detection. It is the fast mode of Katip Mask, a KVKK redaction tool where the document never leaves the user's computer, and the default model of the Katip Kalkan connector for Claude.

Nano is Katip's smallest model, not its most accurate. On KVKK-Bench it scores 85.9 Overall (#11 of 21). Katip Mask Base scores 96.1 (#1) and Katip Mask Mini 93.0 (#7). Most of the gap is names in everyday prose: 55.2 for Nano against 84.9 for Base. On real court text the three are close (Turkish names 94.4 / 99.1 / 99.9).

Test sets built by other teams. On held-out halves of four public Turkish PII test sets (all synthetic), Nano scores F2 89.6 on NewMind's nm-kvkk-pii-6K, 95.1 on piimask TR, 90.7 on Çağrı Güngör's set and 90.7 on Werea's, against 93.9, 93.8, 72.6 and 54.3 for NewMind's kvkk-v2 (1.1 GB). Nano is significantly behind on nm6k (95% CI −6.6 to −2.2), ties on piimask (−0.8 to +3.7) and is ahead on Çağrı; Werea's halves share templates, so that result is not independent. Base scores 95.9, 95.9, 95.2 and 95.8. Method and every row: RESULTS.md.

New in v1.1 (13 Nov 2026): trained with foreign client names as they appear in Turkish documents (Syrian, Iranian, Afghan, Georgian, Armenian, Greek, Arab, Russian/Ukrainian, Azerbaijani and Western names, transliterated with inconsistent spellings). v1 (Turkish names only) is kept at the v1.0 tag of this repo.

Results

Measured with Katip's rules (v0.2, 14 Nov 2026) and the exact detection code the browser runs. "Rules" means no model. A value counts as found when a detected span of the same type covers it. Model spans scored 0.5 or higher keep their edges (trust 0.5, in katip.json).

Foreign client names in real court prose. TurkishLegalNER test sentences (Yargıtay), with the anonymised slots filled by names from held-out families (no spelling of them was used in training), 3 fills per sentence, 1,011 names. 95% CIs from a document bootstrap.

Foreign namesTurkish names, same slotsPrecisionFalse names per 1,000 words of name-free trap text
Rules77.1% [73.9–80.1]93.0%99.9%0.6
Rules + Nano v180.3% [77.0–83.3]97.4%99.6%0.6
Rules + Nano v1.194.6% [92.5–96.2]98.7%97.4%9.1

By origin (v1 → v1.1): Arab 69% → 93%, Azerbaijani 60% → 74%, Western 75% → 91%, Persian 88% → 98%, Armenian 87% → 97%, Georgian 89% → 99%, Greek 89% → 100%, Russian/Ukrainian 90% → 95%, Afghan 92% → 100%. Azerbaijani names are still the weakest, because many are written with Turkish word stems.

Synthetic Turkish legal documents (person names / all values, whole-address scoring):

SetRulesRules + Nano v1Rules + Nano v1.1False names added by v1.1
Blind (80 docs, new names)364 / 365 · 754 / 757364 / 365 · 754 / 757364 / 365 · 754 / 7570
Held-out (60 docs)263 / 275 · 605 / 618268 / 275 · 610 / 618271 / 275 · 613 / 6180
Tuning (40 docs)159 / 165 · 425 / 431159 / 165 · 425 / 431163 / 165 · 429 / 4311
Name-free legal prose0

The cost. On trap sentences full of words that are also names or places (Hakim, Emir, Nur, Rahim, Halep, Kabil, Erbil...) v1.1 adds about 9 false names per 1,000 words, against 0.6 for v1. Katip shows every masked value with a tick box, so a false name costs a click; a missed name is a KVKK breach.

Honest caveats. The legal documents above are synthetic. The court prose is real, but its names are filled in by us. The foreign-name scores come from the same TurkishLegalNER corpus whose train split was used in training (the test split was not). Real case files will score lower, so always review the masked output.

How it is meant to be used

Labels (O, B-PER, I-PER) are trained per word on the word's first sub-token. Words are split with the regex in config.json → katip.word_regex ([\p{L}\p{N}][\p{L}\p{N}'’.-]*). Feed words in order inside [CLS] … [SEP] windows of at most 256 tokens and read the logits at each word's first sub-token. The stock Hugging Face token-classification pipeline splits differently and gives noisy output.

How Katip combines it with the rules (local_detect.py in the Space):

  1. keep model spans with mean probability ≥ 0.5;
  2. below trust, trim ordinary Turkish words off both edges; at or above it, keep the edges;
  3. widen an overlapping rule PERSON span to the union;
  4. otherwise add the span when it has two or more capitalised words, or one capitalised word that is not an ordinary word (or carries a proper-noun case suffix, as in Topçu'nun), or one already found as a name in the same document.

Reference code: src/ner.js (transformers.js) and connector/katip_kalkan/ner.py (onnxruntime, no PyTorch) in the source repository. This release ships only the int8 ONNX file; the PyTorch weights of v1 are at the v1.0 tag.

Model and training

BERT trained from scratch: 2 layers, hidden size 128, 2 heads, 512 FFN, 256 positions, cased WordPiece vocabulary of 16,000. 5 epochs, seed 0, about 8 minutes on 4 CPU cores (train_info.json).

Training data: 8,000 synthetic documents from Katip's legal templates (petitions, judgments, leases, employment contracts, powers of attorney, notices, e-mails, minutes, chats, expert reports), with some of their names swapped for foreign ones; 4,182 real-text documents (all 17,967 Turkish Wiki NER sentences, packed, plus TurkishLegalNER train-split court sentences and generated petitions with names filled in); and the foreign-name mix: transliterated names from 10 origin groups with spelling variants (Muhammed / Mohammad / Mhd, Al- / El-, -zadeh / -zade, -shvili / -şvili, -yan / -ian), minus every family held out for testing. Recipe: lab/foreign/ in the source repository.

Limits

  • Person names only. Everything with a checksum or fixed shape (T.C. kimlik, YKN, passport, VKN, IBAN, card, phone, plate, e-mail) and addresses are left to the rules.
  • Legal Turkish. Not tested on OCR output beyond Katip's scans and photos, or on non-legal text.
  • Not a privacy guarantee: always review redacted output before sending it.

Licence

CC BY-SA 4.0 (see LICENSE). You may use, share and adapt the model, also commercially. Credit Katip and the training data, and share adaptations under the same licence. Nano v1.1 is trained partly on Turkish Wiki NER (Altinok, D. (2023). A Diverse Set of Freely Available Linguistic Resources for Turkish. ACL 2023; CC BY-SA 4.0, https://github.com/turkish-nlp-suite/Turkish-Wiki-NER-Dataset). Earlier versions (v1.0) were released under CC BY-NC 4.0. Katip's code is AGPL-3.0, with a commercial licence on request: https://github.com/fikrifirat/katip.

Citation

@misc{firat2026katipmasknano,
  title  = {Katip Mask Nano (tr): a 2.5M-parameter Turkish name tagger for the browser},
  author = {F{\i}rat, Fikri},
  year   = {2026},
  url    = {https://huggingface.co/f1k/katip-mask-nano}
}

Please also cite Turkish Wiki NER (Altinok, 2023).

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

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

GPU в ailist

Универсальный рантайм · transformers.js

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

Модель выложена для браузера (ONNX / transformers.js), для GPU-рантайма нет весов.

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

0 моделей