/ Модель

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

Контекст
512 токенов
Лицензия
Своя лицензия
Архитектура
distilbert · dense
Базовая модель
distilbert-base-cased
Библиотека
transformers
Опубликована
31 июл 2026

polygraf-ner-stage4-final-model

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

Дообученная на английских новостях модель DistilBERT извлекает из текста восемь типов именованных сущностей с BIO-разметкой.

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

Бенчмарки

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

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

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

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

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

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

Polygraf NER Stage 4 Final Model — англоязычная модель распознавания именованных сущностей, созданная для технического задания Polygraf Applied NLP. Она дообучена Hasanblanka на DistilBERT и размечает последовательность токенов BIO-тегами для восьми типов сущностей: людей, организаций, мест, дат и времени, продуктов, произведений искусства, профессий и денежных или количественных значений.

Модель построена на DistilBertForTokenClassification и содержит около 65,2 млн параметров. Она обучалась на 1 954 примерах обучающей выборки; тестовая выборка включает 472 записи. В README приведён F1 сущностей 0,7554 на объединённом тесте и 0,8222 на диагностической выборке из 10 вручную размеченных примеров. Модель рассчитана на английские тексты, в частности новости; базовый контекст DistilBERT — 512 токенов. Указанная лицензия — other.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Polygraf NER Stage 4 Final Model

This is the final improved English NER model produced for Stage 4 of the Polygraf Applied NLP / NER technical task. It fine-tunes distilbert/distilbert-base-cased on the reviewed and expanded Stage 4 dataset.

Labels

The model predicts BIO tags for eight flat, non-overlapping entity types:

  • PERSON
  • ORGANIZATION
  • LOCATION
  • TIMEDATE
  • PRODUCT
  • WORKOFART
  • JOB
  • AMOUNT

The exact id2label and label2id mappings are stored in config.json.

Architecture

  • Architecture: DistilBertForTokenClassification
  • Parameters: 65,203,985
  • Hidden size: 768
  • Transformer layers: 6
  • Attention heads: 12
  • Activation: GELU, inherited from DistilBERT
  • Saved weights: approximately 260.8 MB
  • Base revision: 6ea81172465e8b0ad3fddeed32b986cdcdcffcf0

Training data

  • Dataset: Hasanblanka/polygraf-ner-stage4-final-dataset
  • Train records: 1,954
  • Test records: 472
  • Validation records: 0
  • Earlier train records moved to test: 0
  • Exact train/test text leakage: 0
  • Global Voices article-group leakage: 0

The test split combines 127 frozen earlier test records with 345 newly held-out Global Voices records. The newly held-out records were selected only from previously unseen article groups.

Training configuration

  • Epochs: 4
  • Batch size: 8
  • Gradient accumulation: 2
  • Effective batch size: 16
  • Optimizer steps: 492
  • Optimizer: AdamW
  • Learning rate: 5e-5
  • Weight decay: 0.01
  • Warmup ratio: 0.1
  • Maximum gradient norm: 1.0
  • Scheduler: linear schedule with warmup
  • Seed: 42
  • Maximum sequence length: 512
  • Truncation: disabled
  • Device: CPU
  • Training runtime: approximately 1 hour 45 minutes

No validation split was used. The held-out test split did not contribute gradients.

Evaluation

MetricTrainCombined test
Precision0.90410.7077
Recall0.95110.8100
Entity F10.92700.7554
Macro F10.90190.7022
Token accuracy0.99190.9571

Test results by entity type:

LabelPrecisionRecallF1
PERSON0.58150.71330.6407
ORGANIZATION0.59510.72950.6555
LOCATION0.73080.87320.7957
TIMEDATE0.85490.90830.8808
PRODUCT0.67520.65290.6639
WORKOFART0.28480.38490.3274
JOB0.70570.80980.7542
AMOUNT0.89000.91000.8999

For an apples-to-apples comparison, entity F1 on the same 127 frozen records rose from 0.5530 in Stage 4 Part 1 to 0.5967 in this final model. The newly held-out 345-record Global Voices subset scored 0.7929.

Frozen wild-sample QA

The same 10 manually annotated samples used to diagnose the Stage 3 model were evaluated again:

  • Precision: 0.7872
  • Recall: 0.8605
  • Entity F1: 0.8222
  • Macro F1: 0.7794

Stage 3 scored 0.5376 F1 on this set. The final model improved organization, job, temporal, and excessive work-title behavior, while product boundaries and some organization/location distinctions remain unresolved.

Usage

from transformers import pipeline

model_id = "Hasanblanka/polygraf-ner-stage4-final-model"
ner = pipeline(
    task="token-classification",
    model=model_id,
    tokenizer=model_id,
    aggregation_strategy="simple",
)

text = "Maya Ortiz joined Northstar Robotics in Lisbon on March 12, 2026."
for entity in ner(text):
    print(entity)

Reproducibility files

  • stage4_part2_model.yaml: pinned training configuration.
  • metrics/train_metrics.json: complete train metrics.
  • metrics/test_metrics.json: complete combined-test metrics.
  • metrics/per_label_*.json: label-level metrics.
  • metrics/manual_test_metrics.json: frozen wild-test metrics.
  • metrics/training_history.json: per-epoch loss and learning-rate history.
  • metrics/training_summary.json: environment, hashes, runtime, and outputs.

Limitations

  • This model is not intended for production use.
  • WORKOFART remains the weakest label and shows boundary fragmentation, false positives, and missed titles.
  • PERSON and ORGANIZATION generalization is weaker than the temporal and amount labels.
  • Train F1 is substantially higher than test F1, indicating a remaining generalization gap.
  • Training data is English and news-heavy.
  • Nested entities are not supported.
  • The 10-record wild test is diagnostic, not statistically representative.

License and data terms

The base DistilBERT checkpoint is Apache-2.0. The fine-tuning dataset combines evaluation-use-only starter data, CC BY / CC BY-SA Open Newswire material, CC BY 3.0 Global Voices passages, and synthetic records. This model is published with license: other for evaluation and research. Users must review the full licensing and attribution notes in the Stage 4 dataset repository.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
DistilBertForTokenClassification
Ревизия весов
7c0361e

0 моделей