Downloads · 30 days
11
10% of all-time downloads
Dmitry43243242/icd10-ru-chapter
icd10-ru-chapter is a text classification model from Dmitry43243242. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Single-label classification of ICD-10 chapters from Russian clinical text.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
105
Public
Parameters
178M
713 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors713 MB · 99%
From the Hugging Face model README
Single-label classification of ICD-10 chapters from Russian clinical text.
datasets/icd10_final_dataset_all.csv (sha256: f008e02dbe74623565e9eccb512f0cf1d8b5f24cb0882c4b432a4f8d8cf22709)ml/train_rubert_base.ipynbicd10_final_dataset_synthetic.csv (sha256: ff40b24c4e1a1b79d365a1a2d3ad54afa9e8e295851dff42e45ea22a38d4321a)generated.csv (sha256: a35e6dc73c92ff0fdc02a54c600d4c9dfcdd5d18ce33397f4e6b9788df0e3bc0)| Metric | Value |
|---|---|
| top-1 accuracy | 0.7121 |
| top-3 accuracy | 0.8724 |
| f1-macro | 0.4029 |
| f1-weighted | 0.7043 |
| precision-macro | 0.4208 |
| recall-macro | 0.4123 |
| precision-weighted | 0.7110 |
| recall-weighted | 0.7121 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo = "Dmitry43243242/icd10-ru-chapter"
tok = AutoTokenizer.from_pretrained(repo)
mdl = AutoModelForSequenceClassification.from_pretrained(repo).eval()
text = "Жалобы пациента..."
enc = tok(text, return_tensors="pt", truncation=True, max_length=384)
with torch.no_grad():
probs = torch.softmax(mdl(**enc).logits, dim=-1)[0]
top3 = sorted(
[(mdl.config.id2label[i], float(p)) for i, p in enumerate(probs)],
key=lambda x: -x[1],
)[:3]
print(top3)
Decision-support for ICD-10 chapter triage from text. This model does not replace clinical judgment.
<HF_USER>/icd10-ru-subgroup-<letter>.max_prob < 0.30, route to manual review.ai-forever/ruBert-baseai-app training workflow (ml/train_rubert_base.ipynb)