/ Модель

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

Контекст
512 токенов
Параметры
20,4 млн
Лицензия
Apache 2.0
Архитектура
electra · dense
Базовая модель
electra-small-discriminator
Опубликована
9 авг 2026

polygraf-ner-stage3-model

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

Англоязычная модель на базе ELECTRA для извлечения восьми типов именованных сущностей из текста.

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

Бенчмарки

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

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

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

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

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

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

Polygraf NER Stage 3 — англоязычная модель для распознавания и классификации именованных сущностей в тексте. Разработана в рамках технического задания Polygraf Applied NLP и дообучена целиком на наборе inovruzova/polygraf-ner-stage2-expanded на базе энкодера ELECTRA Small Discriminator от Google. Архитектура — ElectraForTokenClassification, около 20,4 млн параметров по метаданным, контекст — до 512 токенов. Модель размечает восемь типов сущностей: людей, организации, места, дату и время, продукты, произведения искусства, профессии и суммы. Выпущена в формате safetensors.

Подходит для извлечения сущностей из англоязычных текстов, например для предварительной разметки документов и поиска упоминаний людей, организаций, мест, товаров или денежных сумм. На тестовой выборке указана micro-F1 0,745; качество на обучающей выборке существенно выше, что указывает на запоминание обучающих примеров. Модель часто переопределяет сущности, хуже справляется с организациями, продуктами и произведениями искусства, а её некейсированный токенизатор не использует прописные буквы как признак имени. Весы распространяются по лицензии Apache 2.0; для повторного использования обучающих данных следует отдельно учитывать условия лицензий исходных корпусов.

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

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

Ограничения

На тестовой выборке micro-F1 составляет 0,745 при 0,999 на обучающей, что указывает на сильное запоминание данных; модель также склонна предсказывать лишние сущности. Слабее распознаются произведения искусства, организации и продукты; некейсированная модель не использует регистр букв, а отдельные границы сущностей и типы разметки обрабатываются непоследовательно.

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

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

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

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

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

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

Открыть на Hugging Face

Polygraf / NER Stage 3: First Model

google/electra-small-discriminator fine-tuned end to end for token classification on inovruzova/polygraf-ner-stage2-expanded. All layers were updated, not only the classification head.

This is the Stage 3 output of the Polygraf Applied NLP / NER technical task. It is a first model, published with its faults documented rather than tuned away.

Labels

Eight entity types, seventeen tags including O.

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

The full annotation policy the labels follow is on the dataset card.

Usage

from transformers import pipeline

ner = pipeline(
    "token-classification",
    model="inovruzova/polygraf-ner-stage3-model",
    aggregation_strategy="simple",
)

ner("The software engineer at Google filed the patent in March 2024.")

Model facts

Base modelgoogle/electra-small-discriminator
Parameters13,487,377
Size on disk52.2 MB
CPU memory at inference[MEASURE] MB
Throughput on CPU16.3 records per second, 61.5 ms per record

Throughput measured one passage at a time on CPU, after warm-up, over 100 passages from the test split.

Training

HardwareNVIDIA RTX 4070 Laptop GPU, 8 GB VRAM
Learning rate1e-4
Batch size8
Epochs30
Weight decay0.01
Maximum sequence length512
Seed202608
Runtime131 seconds

No validation split, following the task instruction, and therefore no checkpoint selection.

An earlier run used the Hugging Face defaults of 5e-5, batch 16 and 10 epochs and reached test F1 0.491. It was undertrained rather than overfitted: train F1 was 0.583 and the loss was still falling at the last step. The settings above were chosen from that evidence, all of which comes from the training split. 5e-5 suits BERT base at 110M parameters; this model is 13.5M.

Results

Micro-averaged F1: 0.745 on test, 0.999 on train.

Test, per label

LabelPrecisionRecallF1Support
TIMEDATE0.8310.9200.873112
PERSON0.8050.9010.850101
AMOUNT0.8090.8210.81567
LOCATION0.7830.8370.80986
JOB0.7190.7080.71365
PRODUCT0.5780.6730.62255
ORGANIZATION0.5000.6000.54565
WORKOFART0.4800.4900.48549
micro avg0.7150.7780.745600

On train, every label scores between 0.997 and 1.000.

Limitations

The model memorises its training set. Train 0.999 against test 0.745 is a gap of 0.254. This is left uncorrected rather than fixed by shortening training, because with no validation split, shortening until the test gap narrows would be selecting a training length on test performance.

Three labels are much weaker than the rest. WORKOFART, ORGANIZATION and PRODUCT are exactly the labels governed by the four policy rules that need knowledge outside the token sequence: whether a spec-like token belongs to a product's commercial name, whether a brand is acting as a company, whether a title refers to a game or a film, and whether a place name stands for the institution it houses. Scarcity does not explain it; ORGANIZATION is the fourth most common label in the dataset.

The model is uncased. It never sees capitalisation, which is the strongest surface clue that a word is a name in English. Every model below about 35M parameters is uncased and the smallest cased one is five times larger, so this is the cost of choosing the smallest reasonable model.

It over-predicts. Recall exceeds precision on seven of eight labels.

Test metrics are agreement, not accuracy. The test labels were themselves measured at 98.3 percent span precision in a 40-record hand audit, so these numbers compare the model against an imperfect reference.

Two entities in the training data cannot be represented as token tags, because the policy places a currency symbol outside the span and BERT-family tokenizers split $ from a following digit but not £.

Known failure modes

Ten patterns were found by running the model on 32 constructed samples outside the dataset, each written to exercise one policy rule. Examples in full are in the project report. In summary: generic nouns labeled as named entities; vague time expressions labeled; boundaries falling inside words; single entities split into two differently labeled spans; entities missed; possessives dropped from establishment names; dish preparations labeled; nationality adjectives kept inside spans inconsistently; adjacent time expressions merged; adverbial phrases labeled as jobs.

At least one of these is inherited rather than learned wrongly. The training data itself contains nationality adjectives treated inconsistently, so the model reproduces that faithfully.

Related repositories

StageArtefact
1inovruzova/polygraf-ner-stage1-cleaned
2inovruzova/polygraf-ner-stage2-expanded

Licensing

The model weights are released under Apache 2.0, matching the base model.

The training data is a collection of corpora under different terms, including share-alike obligations from ODbL and CC BY-SA. Those obligations attach to the dataset rather than to a set of trained weights, but anyone reusing this model should read the dataset card.

Produced during the Polygraf Applied NLP / NER technical task.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ElectraForTokenClassification
Ревизия весов
ec2c893

0 моделей