/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
CC BY 4.0
Базовая модель
hplt_bert_base_cs
Опубликована
11 июн 2026

multiclinner-cz-disease-hplt-cs

Заполнение пропусковТекст → текст3 профессии

Дообученная модель LtgBERT для извлечения упоминаний заболеваний из чешских клинических текстов.

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

Бенчмарки

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

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

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

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

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

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

Модель разработана командой NLP4BIA Барселонского суперкомпьютерного центра для распознавания упоминаний заболеваний в чешских клинических текстах. Это дообученная версия HPLT/hplt_bert_base_cs с архитектурой LtgBERT для классификации токенов: она присваивает токенам BIO-метки O, B-DISEASE и I-DISEASE. Модель содержит 124,3 млн параметров и поддерживает контекст до 512 токенов.

Модель предназначена для извлечения названий заболеваний из медицинских записей и документов на чешском языке. Для соответствия опубликованной оценке на входе нужна токенизация, аналогичная обучающей; на длинных документах рекомендуется использовать шаг 128 и корректно объединять результаты по фрагментам. В README сообщаются strict F1 0,5284 и посимвольный F1 0,6818 на тестовом наборе MultiClinNER для чешского языка. Авторы предупреждают о возможных смещениях и нежелательных искажениях и не приводят оценку этих смещений. Лицензия модели — CC BY 4.0.

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

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

Ограничения

Модель ориентирована на чешские клинические тексты и обучалась на предварительно токенизированных данных; отличающаяся токенизация может менять границы сущностей. Авторы не оценивали смещения, а strict F1 на тестовом наборе MultiClinNER составляет 0,5284.

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

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

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

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

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

Открыть на Hugging Face

multiclinner-cz-disease-hplt-cs

Table of contents

Model description

A fine-tuned version of HPLT/hplt_bert_base_cs for DISEASE Named Entity Recognition in Czech clinical text. It was developed for MultiClinNER, a subtask of the MultiClinAI shared task organized by the NLP4BIA team at the Barcelona Supercomputing Center as part of the #SMM4H-HeaRD Workshop at the ACL 2026 conference. The model labels mentions of DISEASE using the BIO tagging scheme: O, B-DISEASE, I-DISEASE.

⚠ This model uses a custom architecture (LtgBERT) and requires trust_remote_code=True when loading.

Usage

This is a token-classification (NER) model. It was trained on pre-tokenized text (is_split_into_words=True). For predictions that match our reported scores, reproduce that tokenization at inference (split into word/non-word tokens, run, then re-align offsets). A plain pipeline(raw_text) still gives correct character offsets, but its subword tokenization differs from training, so boundary predictions near punctuation may differ.

Recommended: ner_nlp4bia (handles pre-tokenization + offset re-alignment)

# pip install git+https://github.com/nlp4bia-bsc/ner-nlp4bia.git   # not on PyPI; install from git
from ner_nlp4bia.data.corpus import Document
from ner_nlp4bia.inference.pipeline import PipelineInferencer

inf = PipelineInferencer("BSC-NLP4BIA/multiclinner-cz-disease-hplt-cs")          # stride=128, aggregation="first"
doc = inf.infer_document(Document(filename="d1", text=open("note.txt").read()))
for a in doc.annotations:
    print(a.label, a.start, a.end, repr(a.text))   # offsets in original-text coords

Plain transformers (you must pre-tokenize and re-align yourself)

import re
from transformers import pipeline

TOK = re.compile(r'([0-9A-Za-zÀ-ÖØ-öø-ÿ]+|[^0-9A-Za-zÀ-ÖØ-öø-ÿ])')

def pretokenize(text):
    toks = [t for t in TOK.split(text) if t]
    i = 1
    while i < len(toks):
        if not toks[i-1].isspace() and not toks[i].isspace():
            toks.insert(i, ' '); i += 1
        i += 1
    pre = ''.join(toks)
    oi = pj = 0; ins = []                 # positions of inserted spaces in `pre`
    while pj < len(pre):
        if oi < len(text) and text[oi] == pre[pj]:
            oi += 1; pj += 1
        else:
            ins.append(pj); pj += 1
    return pre, ins

nlp = pipeline("token-classification", model="BSC-NLP4BIA/multiclinner-cz-disease-hplt-cs",
               aggregation_strategy="first", trust_remote_code=True)
# window long docs (RoBERTa/LtgBERT reserve 2 positions -> use mpe-2 for those)
nlp.tokenizer.model_max_length = nlp.model.config.max_position_embeddings

text = open("note.txt").read()
pre, ins = pretokenize(text)
for e in nlp(pre, stride=128):
    if e["start"] == e["end"]:
        continue
    s = e["start"] - sum(1 for x in ins if x < e["start"])
    t = e["end"]   - sum(1 for x in ins if x < e["end"])
    while s < t and text[s].isspace():   s += 1     # byte-BPE leading-space trim
    while t > s and text[t-1].isspace(): t -= 1
    print(e["entity_group"], s, t, repr(text[s:t]))

Notes:

  • stride=128 matches the training stride; prevents truncation of long documents.
  • For RoBERTa/LtgBERT-family checkpoints set model_max_length = max_position_embeddings - 2.

Evaluation

Scores were computed with the official MultiClinAIEval library on the MultiClinNER Czech gold-standard test documents for DISEASE (the shared-task gold set for this language and entity type).

MetricScoreDefinition
strict F10.5284exact match of both entity span (start/end) and label
char F1 (gold)0.6818character-level F1, restricted to the gold-standard documents

See the MultiClinAI shared task for the full evaluation protocol.

Limitations and bias

At the time of submission, no measures have been taken to estimate the bias embedded in the model. However, we are well aware that our models may be biased. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.

Additional information

Authors

NLP4BIA team at the Barcelona Supercomputing Center (nlp4bia@bsc.es).

Contact information

jan.rodriguez [at] bsc.es

Funding

More information will be available soon.

Citing information

Please cite the MultiClinAI shared task overview paper (forthcoming).





Disclaimer

The models published in this repository are intended for a generalist purpose and are available to third parties. These models may have bias and/or any other undesirable distortions.

When third parties deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of artificial intelligence.


Los modelos publicados en este repositorio tienen una finalidad generalista y están a disposición de terceros. Estos modelos pueden tener sesgos y/u otro tipo de distorsiones indeseables.

Cuando terceros desplieguen o proporcionen sistemas y/o servicios a otras partes usando alguno de estos modelos (o utilizando sistemas basados en estos modelos) o se conviertan en usuarios de los modelos, deben tener en cuenta que es su responsabilidad mitigar los riesgos derivados de su uso y, en todo caso, cumplir con la normativa aplicable, incluyendo la normativa en materia de uso de inteligencia artificial.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
LtgbertForTokenClassification
Ревизия весов
54e5fae

0 моделей