/ Модель

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

Контекст
512 токенов
Параметры
162 млн
Лицензия
MIT
Архитектура
bert · dense
Опубликована
26 мар 2022

bert-base-historic-multilingual-64k-td-cased

Заполнение пропусковТекст → текст3 профессии

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

120скачиваний за 30 дней2лайкавеса обновлены6 сен 2023

Бенчмарки

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

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

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

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

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

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

dbmdz/bert-base-historic-multilingual-64k-td-cased — многоязычная модель семейства BERT, опубликованная командой dbmdz для работы с историческими текстами. Она предобучена на корпусах Europeana и British Library, включающих OCR-тексты на немецком, французском, английском, финском и шведском языках; размер итогового обучающего корпуса составляет 130 ГБ. Вариант использует словарь из 64 тысяч подслов и сохраняет регистр символов.

Модель подходит для предсказания замаскированных токенов и может служить основой для дообучения на распознавание именованных сущностей в исторических документах. Это BERT с архитектурой BertForMaskedLM и 162,4 млн параметров; контекст ограничен 512 токенами. Доступны веса в форматах PyTorch, safetensors и ONNX. Лицензия — MIT.

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

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

Ограничения

Контекст ограничен 512 токенами. Карточка описывает предобучение, но не приводит оценок качества или подробностей процедуры; для распознавания именованных сущностей потребуется подходящая задача дообучения.

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

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

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

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

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

Открыть на Hugging Face

hmBERT: Historical Multilingual Language Models for Named Entity Recognition

More information about our hmBERT model can be found in our new paper: "hmBERT: Historical Multilingual Language Models for Named Entity Recognition".

Languages

Our Historic Language Models Zoo contains support for the following languages - incl. their training data source:

LanguageTraining dataSize
GermanEuropeana13-28GB (filtered)
FrenchEuropeana11-31GB (filtered)
EnglishBritish Library24GB (year filtered)
FinnishEuropeana1.2GB
SwedishEuropeana1.1GB

Corpora Stats

German Europeana Corpus

We provide some statistics using different thresholds of ocr confidences, in order to shrink down the corpus size and use less-noisier data:

OCR confidenceSize
0.6028GB
0.6518GB
0.7013GB

For the final corpus we use a OCR confidence of 0.6 (28GB). The following plot shows a tokens per year distribution:

German Europeana Corpus Stats

French Europeana Corpus

Like German, we use different ocr confidence thresholds:

OCR confidenceSize
0.6031GB
0.6527GB
0.7027GB
0.7523GB
0.8011GB

For the final corpus we use a OCR confidence of 0.7 (27GB). The following plot shows a tokens per year distribution:

French Europeana Corpus Stats

British Library Corpus

Metadata is taken from here. Stats incl. year filtering:

YearsSize
ALL24GB
>= 1800 && < 190024GB

We use the year filtered variant. The following plot shows a tokens per year distribution:

British Library Corpus Stats

Finnish Europeana Corpus

OCR confidenceSize
0.601.2GB

The following plot shows a tokens per year distribution:

Finnish Europeana Corpus Stats

Swedish Europeana Corpus

OCR confidenceSize
0.601.1GB

The following plot shows a tokens per year distribution:

Swedish Europeana Corpus Stats

All Corpora

The following plot shows a tokens per year distribution of the complete training corpus:

All Corpora Stats

Multilingual Vocab generation

For the first attempt, we use the first 10GB of each pretraining corpus. We upsample both Finnish and Swedish to ~10GB. The following tables shows the exact size that is used for generating a 32k and 64k subword vocabs:

LanguageSize
German10GB
French10GB
English10GB
Finnish9.5GB
Swedish9.7GB

We then calculate the subword fertility rate and portion of [UNK]s over the following NER corpora:

LanguageNER corpora
GermanCLEF-HIPE, NewsEye
FrenchCLEF-HIPE, NewsEye
EnglishCLEF-HIPE
FinnishNewsEye
SwedishNewsEye

Breakdown of subword fertility rate and unknown portion per language for the 32k vocab:

LanguageSubword fertilityUnknown portion
German1.430.0004
French1.250.0001
English1.250.0
Finnish1.690.0007
Swedish1.430.0

Breakdown of subword fertility rate and unknown portion per language for the 64k vocab:

LanguageSubword fertilityUnknown portion
German1.310.0004
French1.160.0001
English1.170.0
Finnish1.540.0007
Swedish1.320.0

Final pretraining corpora

We upsample Swedish and Finnish to ~27GB. The final stats for all pretraining corpora can be seen here:

LanguageSize
German28GB
French27GB
English24GB
Finnish27GB
Swedish27GB

Total size is 130GB.

Pretraining

Details about the pretraining are coming soon.

Acknowledgments

Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC) program, previously known as TensorFlow Research Cloud (TFRC). Many thanks for providing access to the TRC ❤️

Thanks to the generous support from the Hugging Face team, it is possible to download both cased and uncased models from their S3 storage 🤗

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertForMaskedLM
Ревизия весов
70130d6

0 моделей