/ Модель

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

Лицензия
Apache 2.0
Архитектура
extractor · dense
Базовая модель
gliner2-multi-v1
Библиотека
gliner2
Опубликована
15 июн 2026

finemed-entity-extractor-fr

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

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

976скачиваний за 30 дней4лайкавеса обновлены2 июл 2026

Бенчмарки

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

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

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

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

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

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

FineMed Medical-Entity Extractor (FR) — модель DoctoLlib для извлечения медицинских сущностей из франкоязычных медицинских документов и веб-текстов. Она размечает фрагменты текста по восьми классам таксономии, адаптированной из UMLS, включая заболевания, лекарства и части тела. Модель используется для вычисления плотности медицинских терминов в корпусе FineMed-fr: доли символов документа, покрытых извлечёнными фрагментами.

Это GLiNER2, дообученная на аннотациях, созданных и проверенных LLM; базовая модель — fastino/gliner2-multi-v1. Для расчёта показателя FineMed-fr авторы рекомендуют обрабатывать среднее окно длиной 512 токенов. Модель предназначена для корпусной разметки французских медицинских текстов, а не для клинических решений или исчерпывающего извлечения сущностей из целого документа. Распространяется по лицензии Apache-2.0.

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

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

Ограничения

Модель настроена на оценку плотности терминов по окну в 512 токенов и не предназначена для исчерпывающего распознавания сущностей во всём документе. Не использовать для принятия клинических решений.

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

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

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

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

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

Открыть на Hugging Face

FineMed Medical-Entity Extractor (FR)

📚 Introduction

This is the medical-entity extractor used to compute the medical-term density axis of FineMed-fr. Given a French medical document, it extracts medical-term spans under an 8-class UMLS-adapted taxonomy (disease, drug, body_part, …). The density is then the ratio of characters inside the extracted spans to the document's total characters.

It is a GLiNER2 model (mDeBERTa-v3 backbone, 512-token context) fine-tuned on LLM annotations, one of the three lightweight annotators behind FineMed-fr (subdomain, educational quality, medical-term density).

🚀 How to Use

from gliner2 import GLiNER2

extractor = GLiNER2.from_pretrained("doctolib-lab/finemed-entity-extractor-fr")

# 8-class taxonomy; passing descriptions (not just the keys) improves extraction
labels = {
    "disease": "Pathological condition: disease, syndrome, infection, cancer, injury, symptom, clinical finding, mental disorder",
    "drug": "Chemical substance for therapy: prescription medication, vaccine, therapeutic compound, drug class, contrast agent",
    "body_part": "Anatomical structure: organ, tissue, bone, muscle, blood vessel, nerve, cell, body fluid, anatomical region",
    "medical_procedure": "Clinical action with methodology: surgery, diagnostic test, medical examination, laboratory test, imaging procedure",
    "molecular_marker": "Molecular entity or biochemical substance: gene, protein, enzyme, receptor, genetic variant, biochemical analyte",
    "clinical_device": "Manufactured medical object: surgical tool, implant, prosthetic, diagnostic scanner, monitoring equipment",
    "vital_function": "Physiological parameter name: heart rate, blood pressure, respiratory rate, temperature, oxygen saturation",
    "living_beings": "Non-human organism in biomedical context: bacterium, virus, fungus, parasite, pathogen, model organism",
}

text = "Le patient présente une pneumonie traitée par amoxicilline ..."
results = extractor.batch_extract_entities([text], labels, threshold=0.5)
print(results[0]["entities"])
# {"disease": ["pneumonie"], "drug": ["amoxicilline"], ...}

To reproduce FineMed's medical_entity_density, run extraction over the middle 512 tokens of each document, then divide the characters covered by the extracted spans by the document's total character count. Taking the middle window skips boilerplate at the document boundaries and keeps corpus-scale inference tractable.

🏷️ Entity Taxonomy

8 classes adapted from UMLS, keeping the medical-term-rich groups:

classcovers
diseasedisease, syndrome, infection, cancer, injury, symptom, clinical finding, mental disorder
drugprescription medication, vaccine, therapeutic compound, drug class, contrast agent
body_partorgan, tissue, bone, muscle, blood vessel, nerve, cell, body fluid, anatomical region
medical_proceduresurgery, diagnostic test, medical examination, laboratory test, imaging procedure
molecular_markergene, protein, enzyme, receptor, genetic variant, biochemical analyte
clinical_devicesurgical tool, implant, prosthetic, diagnostic scanner, monitoring equipment
vital_functionheart rate, blood pressure, respiratory rate, temperature, oxygen saturation
living_beingsbacterium, virus, fungus, parasite, pathogen, model organism

🔧 Training

Fine-tuned from GLiNER2 on entity annotations produced by Qwen3-235B-A22B-Instruct via a two-pass self-review (Pass 1 extracts entities, Pass 2 reviews and corrects them) over roughly 300k documents. Best configuration: training prompts without per-class descriptions, inference prompts with descriptions. Entity-group order is shuffled during annotation to mitigate position bias. The two annotation prompts are in medical_entity_extract_prompt.txt (Pass 1) and medical_entity_review_prompt.txt (Pass 2).

⚠️ Intended Use & Limitations

Built to annotate French medical web text at corpus scale (to build FineMed-fr), not for clinical decision-making. It is tuned for density estimation over a 512-token window, not exhaustive document-level entity recognition.

⚖️ License

Apache-2.0, inherited from the GLiNER2 base model.

🏛️ Acknowledgments

This work was granted access to the HPC resources of IDRIS (Jean Zay) under the allocations 2025-AD011016291 and 2026-A0200617487 made by GENCI.

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

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

GPU в ailist

Универсальный рантайм · gliner2

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

Модели GLiNER требуют отдельного рантайма.

Ревизия весов
18e30eb

0 моделей