/ Модель

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

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

pii-IT-name-filter-149M

Разметка токеновТекст → label

Модель Swisscoding на базе ModernBERT обнаруживает личные имена в итальянских, особенно медицинских, текстах для поддержки деидентификации.

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

Бенчмарки

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

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

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

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

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

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

Swisscoding-Technologies разработала Swisscoding Name Filter — семейство моделей ModernBERT-base для обнаружения личных имён. Эта версия предназначена для итальянского текста и размечает имена как сущности PERSON с помощью классификации токенов. Модель рассчитана прежде всего на медицинские и смежные с медициной документы и может использоваться как часть процесса деидентификации.

Модель содержит 149 млн параметров, построена на ModernBERT-base и принимает контекст до 8192 токенов. Для длинных документов README рекомендует разбивать текст на перекрывающиеся фрагменты. Обучение семейства включало деидентифицированные медицинские документы на итальянском, французском и немецком языках, структурированные заглушки и синтетические персоны; для итальянской версии отдельно заявлено применение к итальянскому тексту. Лицензия — Apache-2.0.

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

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

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

Ограничения

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

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

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

Открыть на Hugging Face

Swisscoding Technologies Report

Swisscoding Name Filter

Swisscoding Name Filter is a family of ModernBERT-base token classifiers for detecting personal names. Each model is deliberately focused on this single important use case to maximize performance. Choose the multilingual model or a monolingual model for English, German, French, or Italian.

Benchmarks

MultiGraSCCo contains 63 semi-structured and unstructured hospital-to-GP clinical summaries per language and was prepared by researchers from Technische Universität Berlin and the German Research Center for Artificial Intelligence (DFKI). Its German source annotations were manually labeled by human annotators; translated annotations were automatically preserved, and the translations were reviewed by medical professionals.

Nemotron PII is a synthetic PII dataset released by NVIDIA.

We evaluated the MultiGraSCCo scores for OpenMed and Privacy Filter locally; they are not official results published by the respective organizations.

On Nemotron PII, OpenMed uses separate first_name and last_name labels, while the Swisscoding models use a single PERSON label. The results are therefore not an apples-to-apples comparison.

Size

Total parameter count comparison for Swisscoding Name Filter, OpenMed SuperClinical, and OpenAI Privacy Filter

Total parameter count of the evaluated models.

* OpenAI Privacy Filter uses a mixture-of-experts (MoE) architecture and reports 50M active parameters out of 1.5B total parameters. Only total parameters are plotted.

For operational context, our separate throughput comparison used the Hugging Face Transformers implementations on an NVIDIA A100 in BF16 with 1,000 randomly selected Nemotron examples processed one at a time without batching. The English Swisscoding Name Filter achieved 39.00 examples/second, OpenMed SuperClinical Large achieved 22.13 examples/second, and OpenAI Privacy Filter achieved 0.29 examples/second (3.42 seconds/example). Throughput is implementation- and hardware-dependent, so we do not use it as the primary cross-model comparison.

How to use

Each model supports input windows of up to 8,192 tokens. For longer documents, split the text into overlapping chunks.

We evaluated the Swisscoding Name Filter models using a 0.5 decision threshold. Treat this as a practical starting point and tune it on representative validation data to balance missed names against false positives.

from transformers import pipeline

model_id = "Swisscoding-Technologies/pii-IT-name-filter-149M"
threshold = 0.5

name_detector = pipeline(
    "token-classification",
    model=model_id,
    aggregation_strategy="simple",
)

text = "La paziente Alice Rossi è stata inviata dal Dr Marco Weber per un controllo."
entities = name_detector(text)
names = [entity for entity in entities if entity["score"] >= threshold]
print(names)

Intended use

This model is intended to detect personal names in Italian text, especially medical and medical-adjacent documents. It is designed as one component of a broader de-identification workflow and should be validated on representative local data.

Training data and privacy

Training started from de-identified real-world medical documents in Italian, French, and German. We added structured placeholders and synthetic personas, then used Qwen3.5-122B-A10B (Qwen/Qwen3.5-122B-A10B) to translate the documents across English, German, French, and Italian, producing roughly 30,000 examples per language. This provides exact supervision without reintroducing real PII.

Limitations

This model detects names only and is not a complete anonymization system. It may miss uncommon, ambiguous, or unusually formatted names and may over-redact name-like words. Performance may be lower in other languages or outside medical and medical-adjacent text; high-sensitivity deployments should tune the threshold and validate on local data.

Citation

Authors: Paul Roeseler, Aurélien Ferlay, and Matteo Caliandro

@misc{roeseler2026swisscodingnamefilter,
  title        = {Introducing Swisscoding Name Filter},
  author       = {Roeseler, Paul and Ferlay, Aurélien and Caliandro, Matteo},
  year         = {2026},
  organization = {Swisscoding Technologies},
  url          = {https://github.com/PaulRoeseler/name-detector}
}

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

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

GPU в ailist

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

Нельзя запустить

Репозиторий недоступен на Hugging Face.

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

0 моделей