/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ModernBERT-base
Библиотека
transformers
Опубликована
13 фев 2026

ModernBERT-base-NER

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

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

124скачиваний за 30 дней0лайковвеса обновлены13 фев 2026

Бенчмарки

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

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

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

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

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

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

MatteoFasulo/ModernBERT-base-NER — англоязычная модель токенной классификации, дообученная на answerdotai/ModernBERT-base для распознавания именованных сущностей в тексте. Она использует архитектуру ModernBERT с 149 млн параметров и поддерживает контекст до 8192 токенов; модель предназначена для извлечения сущностей и информационных конвейеров на английском языке.

Модель подходит для выделения имен, организаций и мест в документах и для подготовки структурированных данных из текста. В оценке на наборе CoNLL-2003 указаны F1 0,9138, точность 0,8986 и полнота 0,9295. Качество может снижаться на текстах из других предметных областей; границы сложных и вложенных сущностей могут определяться неточно. Для специализированных областей может потребоваться дополнительная настройка.

Модель распространяется по лицензии Apache-2.0. При обработке персональных данных следует учитывать требования конфиденциальности; для важных решений результаты следует проверять с участием человека.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

ModernBERT-base-NER

This model is a fine-tuned version of answerdotai/ModernBERT-base for Named Entity Recognition (NER) tasks on conll2003 dataset.

Model Description

ModernBERT-base-NER is a token classification model trained to identify and categorize named entities in text. Built on the ModernBERT-base architecture, this model leverages modern transformer optimizations for efficient and accurate entity extraction.

Intended Uses

Primary Use Cases:

  • Named Entity Recognition in text documents
  • Information extraction pipelines

Intended Users:

  • NLP researchers and practitioners
  • Data scientists working with text data
  • Developers building information extraction systems

Limitations

Known Limitations:

  • Performance may vary on domains significantly different from the training data
  • Entity boundaries might be imperfect for complex or nested entities
  • May require domain-specific fine-tuning for specialized applications (medical, legal, etc.)
  • Performance on low-resource languages or code-switched text not evaluated

Out-of-Scope Uses:

  • Real-time processing of sensitive personal information without proper privacy safeguards
  • High-stakes decision making without human oversight
  • Applications requiring 100% accuracy in entity detection

Training and evaluation data

The model was trained on a dataset for named entity recognition. Specific details about the dataset composition, size, and entity types are not publicly disclosed in this release.

Performance

It achieves the following results on the evaluation set:

  • Loss: 0.0638
  • Precision: 0.8986
  • Recall: 0.9295
  • F1: 0.9138
  • Accuracy: 0.9840

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • train_batch_size: 32
  • eval_batch_size: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
  • lr_scheduler_type: cosine
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossPrecisionRecallF1Accuracy
No log1.04390.08200.84310.88990.86590.9766
0.17692.08780.06450.88950.92120.90510.9823
0.04153.013170.06380.89860.92950.91380.9840
0.01434.017560.06590.90370.93350.91840.9849
0.00515.021950.06720.90410.93290.91820.9849

Framework versions

  • Transformers 5.1.0
  • Pytorch 2.7.0a0+ecf3bae40a.nv25.02
  • Datasets 4.5.0
  • Tokenizers 0.22.2

How to Use

import torch
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline

# Create NER pipeline
ner_pipeline = pipeline(
    "token-classification",
    model="MatteoFasulo/ModernBERT-base-NER",
    aggregation_strategy="simple",
    dtype=torch.bfloat16,
)

# Example usage
text = "Apple Inc. was founded by Steve Jobs in Cupertino, California."
entities = ner_pipeline(text)

for entity in entities:
    print(
        f"{entity['word']}: {entity['entity_group']} (confidence: {entity['score']:.4f})"
    )

# Apple Inc.: ORG (confidence: 0.9673)
# founded: MISC (confidence: 0.4503)
# by: PER (confidence: 0.6405)
# Steve Jobs: PER (confidence: 0.9905)
# Cupertino: LOC (confidence: 0.9894)
# California: LOC (confidence: 0.9859)

Ethical Considerations

Privacy: This model may extract personal information (names, locations, organizations) from text. Users should:

  • Implement appropriate data protection measures
  • Comply with relevant privacy regulations (GDPR, CCPA, etc.)
  • Obtain necessary consent before processing personal data

Bias: The model's performance may reflect biases present in the training data, potentially affecting:

  • Recognition rates across different demographic groups
  • Entity detection in various cultural contexts
  • Performance on minority or underrepresented entities

Users should validate the model's performance on their specific use cases and implement bias mitigation strategies as needed.

Citation

If you use this model in your research, please cite ModernBERT model:

@misc{modernbert,
      title={Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference}, 
      author={Benjamin Warner and Antoine Chaffin and Benjamin Clavié and Orion Weller and Oskar Hallström and Said Taghadouini and Alexis Gallagher and Raja Biswas and Faisal Ladhak and Tom Aarsen and Nathan Cooper and Griffin Adams and Jeremy Howard and Iacopo Poli},
      year={2024},
      eprint={2412.13663},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2412.13663}, 
}

License

This model is released under the Apache 2.0 License. See the LICENSE file for details.

Acknowledgments

This model was built using the ModernBERT-base architecture from Answer.AI and trained using the Hugging Face Transformers library.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ModernBertForTokenClassification
Ревизия весов
24ea98d

0 моделей