/ Модель

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

Лицензия
Apache 2.0
Опубликована
28 сен 2026

kraken-genizah-segmenter

Сегментация изображенийИзображение → mask3 профессии

Сегментатор строк на изображениях рукописей Каирской генизы для подготовки страниц на иврите, арамейском и иудео-арабском к распознаванию текста.

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

Бенчмарки

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

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

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

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

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

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

Модель isaacmg/kraken-genizah-segmenter — сегментатор строк на страницах рукописей Каирской генизы, дообученный на базе BLLA для Kraken 7. Она выделяет базовые линии текста на изображениях страниц, чтобы подготовить их к распознаванию рукописного текста. Модель ориентирована на литературные рукописи на иврите, арамейском и иудео-арабском; также показано улучшение сегментации документальных фрагментов, хотя они не входили в обучающую выборку.

Дообучение выполнено на 2 000 страниц проекта KTIV. Для страниц с крупным письмом и повёрнутыми сканами README рекомендует обрабатывать несколько масштабированных и повёрнутых представлений изображения. Модель принимает изображение и выдаёт геометрию сегментированных строк. Лицензия — Apache-2.0. Веса доступны в формате safetensors; изображения и транскрипции KTIV в репозитории не распространяются.

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

  • Выделение строк на страницах литературных рукописей Каирской генизы
  • Подготовка фрагментов рукописей на иврите к распознаванию текста
  • Сегментация арамейских рукописей перед HTR
  • Обработка страниц на иудео-арабском перед распознаванием
  • Поиск строк на сканах с плотными колонками и полями с глоссами
  • Сегментация крупных или повёрнутых рукописных страниц с multi-view обработкой

Ограничения

Модель дообучена на литературных рукописях KTIV, а документальные рукописи не входили в обучающую выборку. Страницы шире 2 600 пикселей исключались из обучения; для очень крупных сканов и крупного письма рекомендуется multi-view обработка.

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

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

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

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

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

Открыть на Hugging Face

Kraken baseline segmenter for Cairo Genizah fragments (fine-tuned from BLLA 2026)

📄 Cairo Genizah AI Transcription — formal analysis and write-up of the project The full account of the methods, training data, benchmarks and error analysis behind the Cairo Genizah AI transcription models. Search the transcribed corpus at Cairo Genizah AI.

A kraken 7 baseline-segmentation model fine-tuned on Cairo Genizah manuscript pages — the first Genizah-specific segmenter we know of that is publicly available. Recognition models for these hands exist (the MiDRASH project published its recognizers on Zenodo), but line segmentation is where a generic model loses most of the text on Genizah fragments: tight columns, damaged edges, script far larger than the segmenter was trained on, marginal glosses and rotated scans. This model closes a large part of that gap.

  • Base: kraken's BLLA base model (Benjamin Kiessling, ALMAnaCH/Inria, 2026, 10.5281/zenodo.22879549, Apache-2.0), a general print-and-handwriting segmenter trained on Latin, Arabic and Greek script corpora.
  • Fine-tuning data: 2,000 pages of Hebrew, Aramaic and Judaeo-Arabic literary manuscripts from the Cairo Genizah, drawn from the KTIV project of the National Library of Israel (at most 3 pages per manuscript; 112 manuscripts held out for validation; manuscripts that overlap our evaluation benchmarks removed). Line targets were derived from the KTIV word coordinates with an ink-estimated baseline; writing KTIV does not transcribe was painted out so that no text is taught as background.
  • Files: ktivseg_e10.safetensors (the released model, epoch 10), plus the epoch-3 and epoch-9 checkpoints for comparison, and views.py, the test-time multi-view wrapper described below.

Results

Character error rate of the same recognizer (MiDRASH Gen_01) reading the lines each segmenter finds, on two held-out benchmarks: 140 religious (literary) pages with KTIV ground truth, and 131 documentary fragments from the Princeton Geniza Project. Lower is better; medians over pages.

segmenterreligious CERtwo-column pagessingle-column pagesdocumentary CER
kraken 4 default0.6800.5040.6540.358
BLLA 2026, binarised input0.5870.3990.5870.297
BLLA 2026 + multi-view0.4620.2990.4040.272
this model (RGB input)0.4090.3140.4610.264
this model + multi-view0.3360.2480.3610.253

For scale, MiDRASH's own published reads of the matched religious pages score 0.240 — so with multi-view this open model brings a stock kraken pipeline to within a tenth of a CER point of that, from 0.68.

In a two-reader consensus pipeline (kraken read vs. a vision-language-model read of the same page, 89 documentary pages), the share of lines on which both readers agree rose from 11.1 % (kraken 4) and 12.8 % (BLLA 2026) to 16.6 % with this model plus multi-view.

Training: val_bl_f1 0.935 (base) → 0.952 by epoch 4, flat through epoch 10; we stopped there and released epoch 10, the best of epochs 3/9/10 on both benchmarks.

Usage

Standard kraken 7 CLI (segment the RGB page, not a binarised one — the model was fine-tuned on colour pages):

pip install "kraken>=7.0"
kraken -i page.jpg lines.json segment -bl -i ktivseg_e10.safetensors
kraken -i page.jpg out.txt segment -bl -i ktivseg_e10.safetensors ocr -m <recognition_model>.mlmodel

Python:

from PIL import Image
from kraken import blla
from kraken.lib import vgsl

net = vgsl.TorchVGSLModel.load_model("ktivseg_e10.safetensors")
seg = blla.segment(Image.open("page.jpg").convert("RGB"), model=net)   # baselines + polygons

Multi-view reading (recommended for large script and rotated scans)

BLLA resizes every page to a fixed input height (1,800 px), so the size of the writing at the model input depends only on how tall the page is relative to its text. A third of the religious benchmark reaches the model with writing larger than 97 % of the training pages, and recovery collapses there. views.py builds views of a page — the page scaled to the model height and padded at the bottom so the text shrinks by a factor 0.5 or 0.33, plus 90°/270° rotations for vertically running scans — segments each view, maps the geometry back to full resolution, and lets the best-reading view win (recognition always runs on the full-resolution page). It is pure PIL geometry with no kraken dependency; the production wiring is in src/services/kraken_microservice/k7/ of the code repository below.

Limitations

  • Trained on literary Genizah hands via KTIV; documentary hands (letters, legal deeds) improve too but were not in the fine-tuning set.
  • Like the base model it detects baselines rather than top-lines for Hebrew; recognition models trained on kraken baselines (MiDRASH Gen_01 included) expect exactly that.
  • Pages wider than 2,600 px were excluded from training for memory reasons; very large scans are best read through the multi-view wrapper.
  • The KTIV images and transcriptions used for fine-tuning are not redistributed here; only the weights are.

Provenance and credits

  • Base model: Kiessling, B. (2026). BLLA base model. Zenodo. https://doi.org/10.5281/zenodo.22879549 (Apache-2.0). kraken: https://kraken.re
  • Fine-tuning pages: National Library of Israel, KTIV — the International Collection of Digitized Hebrew Manuscripts (images and transcriptions). Documentary evaluation: the Princeton Geniza Project.
  • Recognizer used in all evaluations: MiDRASH Gen_01 (Zenodo).
  • Training recipe, PageXML exporter, evaluation harness and the two-reader pipeline: https://github.com/AIStream-Peelout/historical-document-analysis (src/finetuning/kraken/segtrain_ktiv.sh, export_ktiv_pagexml.py; evaluation write-up in docs/kraken7_segmenter_ab.md).

If you use this model, please cite the base model above and credit NLI KTIV for the manuscripts.

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

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

GPU в ailist

Универсальный рантайм

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

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
0f58d3f

0 моделей