/ Модель

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

Контекст
512 токенов
Параметры
306 млн
Лицензия
Apache 2.0
Архитектура
deberta-v2 · dense
Базовая модель
mdeberta-v3-base
Библиотека
transformers
Опубликована
7 авг 2026

snerta-12l-base

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

Многоязычная модель DeBERTa V3 для извлечения людей, мест, организаций и других именованных сущностей из текстов на 12 славянских и соседних языках.

10скачиваний за 30 дней0лайковвеса обновлены7 авг 2026

Бенчмарки

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

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

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

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

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

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

Snerta-12l Base — многоязычная модель распознавания именованных сущностей, разработанная авторами исследования «When Is Multilingual Transfer Beneficial for Slavic Named Entity Recognition?». Это дообученная на microsoft/mdeberta-v3-base модель DeBERTa V3 для token classification: она выделяет в тексте людей (PER), места (LOC), организации (ORG) и прочие сущности (MISC), возвращая метки в формате IOB2. В метаданных указаны 306 млн параметров и контекст 512 токенов; README описывает обучение на дедуплицированном пуле из 12 языков и усечение последовательностей до 256 токенов в стандартном сценарии использования.

Модель предназначена для извлечения сущностей на болгарском, боснийском, чешском, хорватском, македонском, польском, русском, словацком, словенском, албанском, сербском и украинском языках. Её можно использовать для обогащения документов, поиска, мониторинга СМИ, анализа корпусов и аналитики по сущностям, особенно когда удобнее применять одну общую модель для нескольких языков. Репозиторий модели распространяется по лицензии Apache-2.0; лицензии исходных корпусов различаются, и для некоторых из них действуют условия CC BY-NC-SA 4.0 или CC BY-SA 4.0.

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

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

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

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Snerta-12l Base

Snerta-12l Base is a multilingual named entity recognition model for 12 Slavic and neighbouring languages. It is a 278M-parameter microsoft/mdeberta-v3-base model fine-tuned on the complete, deduplicated multilingual training pool prepared for the paper When Is Multilingual Transfer Beneficial for Slavic Named Entity Recognition?

The model recognises four coarse entity types in IOB2 format:

TypeMeaning
PERPerson
LOCLocation
ORGOrganization
MISCMiscellaneous entity, including source-specific labels mapped into the shared category

The underlying nine labels are O, B-LOC, I-LOC, B-MISC, I-MISC, B-ORG, I-ORG, B-PER, and I-PER.

Intended use

The model is intended for general-purpose named entity extraction from text in Bulgarian, Bosnian, Czech, Croatian, Macedonian, Polish, Russian, Slovak, Slovene, Albanian, Serbian, and Ukrainian. It is particularly useful when one shared model is preferable to maintaining a separate model for every language.

It is suitable as a component in search, document enrichment, media monitoring, corpus analysis, and entity-centric analytics. It should not be used as the sole mechanism for anonymisation, access control, legal decisions, or other high-stakes applications. Validate it on the target domain and language before deployment.

Usage

Install Transformers and create a token-classification pipeline with simple entity aggregation:

from transformers import pipeline

model_id = "ivlcic/snerta-12l-base"
ner = pipeline(
    task="token-classification",
    model=model_id,
    tokenizer=model_id,
    aggregation_strategy="simple",
)

text = (
    "Janez Novak... Metka Kralj,,. in Boris A. Novak živijo v Ljubljani "
    "in delajo za Microsoft."
)

for entity in ner(text):
    span = text[entity["start"]:entity["end"]]
    print(entity["entity_group"], span, round(float(entity["score"]), 3))

The example identifies Janez Novak, Metka Kralj, and Boris A. Novak as PER, Ljubljani as LOC, and Microsoft as ORG.

For applications that need to preserve an existing tokenisation—including whitespace and punctuation—the model can also be called with pre-split tokens:

import re

tokens = re.findall(r"\s+|\w+|[^\w\s]", text, flags=re.UNICODE)
entities = ner(
    tokens,
    is_split_into_words=True,
    delimiter="",
)[0]

for entity in entities:
    span = text[entity["start"]:entity["end"]]
    print(entity["entity_group"], span)

Inputs longer than 256 model tokens should be split into overlapping windows by the application. Take care to reconcile entities that cross window boundaries.

Training data

Source corpora belonging to the same language key were pooled before an 80/10/10 sentence-level train/validation/test split.

LanguageCodeSource corpus or corporaPrepared sentences before splitting and deduplicationRole in the paper
BulgarianbgBSNLP / SlavNER18,333Main
BosnianbsWikiANN / PAN-X18,810Lower-confidence auxiliary
CzechcsBSNLP / SlavNER; CNEC 2.020,864Main
Croatianhrhr500k 1.024,794Main
MacedonianmkWikiANN / PAN-X16,227Lower-confidence auxiliary
PolishplBSNLP / SlavNER20,423Main
RussianruBSNLP / SlavNER25,141Main
SlovakskWikiANN / PAN-X50,907Lower-confidence auxiliary
SloveneslBSNLP / SlavNER; ssj500k 2.3, ELEXIS-WSD 1.0, and SentiCoref 1.0 from SUK 1.048,701Main
AlbaniansqWikiANN / PAN-X10,098Lower-confidence auxiliary
SerbiansrSETimes.SR 1.03,891Main
UkrainianukBSNLP / SlavNER; NER-UK 2.024,424Main

The checkpoint uses the full, unbalanced training pool for all 12 language keys. The separate Croatian WikiANN data key supplied for the paper's source-quality ablation was not used to train this model.

After deduplication, the model's 12-language pool contains 190,590 training sentences, 25,796 validation sentences, and 26,979 test sentences. The training split contains approximately 3.27 million word-level tokens. The training pipeline labels only the first model subtoken of each original word and ignores later subtokens when computing the loss and metrics.

Deduplication and relationship to prior work

Unlike the precursor ivlcic/sour-sarma, this model was trained on sentence-deduplicated data. Duplicate matching was performed independently within each language data key on the NFKC-normalized, case-folded token sequence. When a duplicate crossed splits, the test occurrence was retained over validation and training, and validation was retained over training. Repetitions within a split were also removed.

Across the 12 language keys used for this checkpoint, 39,248 of 282,613 prepared sentence instances were removed. The supplementary audit reports 48,225 removals out of 331,498 instances when the separate Croatian WikiANN ablation source is also counted. Deduplication prevents exact sentence leakage but does not remove paraphrases, near-duplicates, or related sentences from the same document.

There is also an intentional label-space difference from the paper experiments. The controlled experiments in the paper use only PER, LOC, and ORG, mapping unsupported labels—including MISC—to O. This release retains MISC because it is intended for a broader operational usage scenario. Consequently, the benchmark below should not be compared directly with the paper's three-type, eight-evaluation-language, three-seed macro averages.

Source data terms

The combined corpus does not have a single uniform data license. Each source retains its own license and citation requirements. In particular, SUK 1.0 is distributed under CC BY-NC-SA 4.0, while hr500k 1.0 and SETimes.SR 1.0 are distributed under CC BY-SA 4.0. BSNLP / SlavNER, WikiANN / PAN-X, CNEC 2.0, and NER-UK 2.0 are governed by their respective source terms. The Apache-2.0 license in this model repository does not replace the source dataset terms.

Training procedure

The model was initialised from microsoft/mdeberta-v3-base and trained in FP32 with the following configuration:

HyperparameterValue
Maximum sequence length256
Epochs20
Per-device training batch size16
Gradient accumulation steps2
Effective training batch size32
Per-device evaluation batch size32
OptimizerPyTorch AdamW
Learning rate2e-5
Learning-rate scheduleLinear
Warmup ratio0.06
Weight decay0.01
Maximum gradient norm1.0
Dropout0.10
Random seed2611
Checkpoint selectionBest validation entity-level F1

The run evaluated and saved a checkpoint after every epoch. The selected checkpoint was from epoch 19, with validation F1 92.60. Training completed 119,140 optimiser steps; the recorded training runtime was approximately 5 hours 58 minutes. The run used PyTorch 2.11.0, Transformers 5.8.0, and seqeval 1.2.2.

The learning rate and dropout follow the mDeBERTa-v3 setting selected by the paper's bounded validation sweep. In the Transformers mDeBERTa implementation, the configured dropout maps to hidden dropout and therefore affects the encoder layers as well as the token-classification head.

Evaluation

The released checkpoint was evaluated once on the combined deduplicated test split for all 12 language keys. Metrics were computed with seqeval at the entity level: a prediction is correct only when both its span and entity type match exactly. Precision, recall, and F1 below are micro-averaged over entities; accuracy is calculated over labeled word positions.

Entity typePrecisionRecallF1
Overall92.2193.5492.87
LOC94.9795.5195.24
MISC82.9785.3984.16
ORG90.2692.1091.17
PER93.7895.1294.44

Token accuracy is 98.62% and test loss is 0.1317. These values come from the saved CaNNopy evaluation artefact for this checkpoint.

Limitations and biases

  • The benchmark uses a random sentence-level split of pooled source corpora. It does not measure cross-document, temporal, topical, or cross-domain generalisation.
  • Results come from one training seed and are aggregated across all 12 languages. Performance can vary substantially by language and domain, and the aggregate score can obscure lower-performing subsets.
  • The corpora differ in domain, segmentation, annotation density, provenance, and label definitions. MISC is especially heterogeneous across sources.
  • Bosnian, Macedonian, Slovak, and Albanian supervision comes from automatically constructed WikiANN / PAN-X data and is considered lower confidence than the manually curated sources.
  • The full-pool training recipe is intentionally unbalanced, so larger language corpora contribute more training examples.
  • Exact sentence deduplication does not remove near-duplicates or guarantee document-level separation.
  • Names, organisations, locations, and demographic groups that are rare or absent in the training corpora may be recognised less reliably. False positives and false negatives should be expected.
  • Although the base encoder is multilingual, this fine-tuned model was trained and evaluated only on the 12 listed languages. Performance on other languages is unknown.
  • Sequences are truncated at 256 model tokens unless the calling application implements windowing.

Reproducibility

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DebertaV2ForTokenClassification
Ревизия весов
1666b7c

0 моделей