/ Модель

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

Лицензия
MIT
Библиотека
flair
Опубликована
29 июн 2026

hgb-ner-v2

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

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

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

Бенчмарки

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

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

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

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

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

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

dh-unibe/hgb-ner-v2 — модель Flair для вложенного распознавания именованных сущностей в исторических текстах, разработанная для документов Исторического земельного реестра города Базеля. Она предназначена прежде всего для немецких текстов XV–XVIII веков; обучающие данные вручную размечены по документам 1400–1700 годов на ранненововерхненемецком языке. Модель использует упрощённый набор из 47 классов разметки, а контекст для вложенных элементов включает маркеры окружающего элемента и по пять соседних токенов с каждой стороны.

Модель поддерживает классификацию токенов и подходит для извлечения сущностей и ссылок из исторических документов, в том числе вложенных элементов. В карточке приведены оценки precision, recall и F1 для отдельных классов; фактические показатели вложенных сущностей могут быть ниже, если окружающие элементы распознаны неверно. Веса опубликованы в формате PyTorch, лицензия — MIT.

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

  • разметка именованных сущностей в исторических немецких документах
  • извлечение персон и ссылок из земельных реестров
  • анализ документов Базеля XV–XVIII веков
  • подготовка корпуса исторических текстов к поиску и исследованию

Ограничения

Оценки вложенной разметки могут быть ниже приведённых, если модель не распознала окружающие элементы. Обучающие данные относятся к историческому земельному реестру Базеля, поэтому качество на других жанрах и периодах может отличаться.

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

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

Открыть на Hugging Face

Historisches Grundbuch der Stadt Basel Nested NER

Nested tagger for Historical Texts, mainly 15th to 18th century German.

Developed by Ismail Prada Ziegler.

A model for historical German developed as part of the project Economies of Space. Practices, Discourses, and Actors on the Basel Real Estate Market (1400-1700) at the University of Basel and the Digital Humanities Bern. This Model was created to annotate nested document structures. It can be used to annotate flat text (such as in the example), but may perform slightly worse than models trained only for that task. You can annotate nested tags by using this script. You can find more info on this strategy here.

Performance

This model features a total of 47 classes. Each class except pro (pronouns) consists of an element and attribute part.

The scores here do represent the evaluation by the Flair model trainer. Please note that actual scores for nested elements may be lower when elements around them were not identified successfully.

LabelPrecisionRecallF1-ScoreSupport
head.nam91.08%93.33%92.19%525
reference.per82.41%86.77%84.54%378
reference.fac70.10%76.17%73.01%277
value.date91.51%94.80%93.12%250
head.type84.83%81.62%83.20%185
value.money84.18%81.42%82.78%183
head.occ86.11%87.74%86.92%106
attr.loc71.82%79.80%75.60%99
trigger.due77.45%74.53%75.96%106
pro88.89%87.13%88.00%101
appo.occ84.38%85.26%84.82%95
attr.owner91.18%82.67%86.71%75
reference.org92.16%77.05%83.93%61
head.fam89.13%93.18%91.11%44
appo.fam92.68%92.68%92.68%41
other.other63.64%43.75%51.85%48
appo.nam75.61%77.50%76.54%40
reference.loc71.88%63.89%67.65%36
reference.gpe-loc93.55%82.86%87.88%35
value.time87.50%87.50%87.50%32
trigger.other36.36%47.06%41.03%17
trigger.sale93.33%82.35%87.50%17
head.title87.50%87.50%87.50%16
attr.includes78.57%64.71%70.97%17
appo.title75.00%56.25%64.29%16
attr.dead92.31%92.31%92.31%13
trigger.rent63.64%58.33%60.87%12
reference.gpe-org76.92%100.00%86.96%10
attr.dues75.00%81.82%78.26%11
appo.org-aff60.00%54.55%57.14%11
trigger.seizure100.00%72.73%84.21%11
head.org-aff100.00%90.00%94.74%10
head.role71.43%62.50%66.67%8
appo.role100.00%8.33%15.38%12
head.other50.00%60.00%54.55%5
head.heir100.00%100.00%100.00%5
appo.gen100.00%100.00%100.00%4
head.gen75.00%75.00%75.00%4
trigger.redemption60.00%100.00%75.00%3
attr.other100.00%25.00%40.00%4
attr.org-aff100.00%66.67%80.00%3
trigger.litigation50.00%50.00%50.00%2
reference.other0.00%0.00%0.00%4
trigger.testament0.00%0.00%0.00%3
appo.other0.00%0.00%0.00%2
head.owner100.00%100.00%100.00%1
unclear.other0.00%0.00%0.00%1

Dataset

Manually annotated dataset created from the Historical Land Registry of the city of Basel. Timeframe: 1400-1700. Language: Early New High German. Language models based on the full HLRB corpus until 1800, appr. 120k documents.

The documents were annotated according to the BeNASch annotation guidelines. For this model, a simplified tagset was used.

The training data was prepared in a special way to accommodate nested annotation. See the linked paper for more information. In addition to the strategy described in the paper, for this version two augmentations were applied:

Class of Annotation Layer

Each input sentence was prefixed and suffixed with a marker informing the prediction which surrounding element is present.

Context information

In addition, the input is prefixed and suffixed with the previous and following 5 tokens.

Example input

When predicting the nested elements inside "Die Lütkilchen s . Ulrich", the input should look like this

[B-CONTEXT] [B-REFERENCE-ORG] Die Lütkilchen s . Ulrich [E-REFERENCE-ORG] hat Caspar Vogt des Küeffers [E-CONTEXT]

Acknowledgments

Calculations were performed on UBELIX (https://www.id.unibe.ch/hpc), the HPC cluster at the University of Bern.

Citation

If you publish works using this model, please cite:

Prada Ziegler, I. (2024, May 30). What's in an entity? Exploring Nested Named Entity Recognition in the Historical Land Register of Basel (1400-1700). DH Benelux 2024, Leuven, Belgium. Zenodo. https://doi.org/10.5281/zenodo.11394453

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

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

GPU в ailist

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

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

Модели Flair требуют отдельного рантайма.

Ревизия весов
9c9e1cd

0 моделей