--- license: cc-by-nc-sa-4.0 language: - ru multilinguality: - monolingual annotations_creators: - expert-generated source_datasets: - original task_categories: - token-classification task_ids: - named-entity-recognition pretty_name: RuClinNER size_categories: - 1K зевота, нехватка кислорода, астма, аллергия | span | label | |---|---| | зевота | `SYMPTOM` | | нехватка кислорода | `SYMPTOM` | | астма | `DISEASE` | | аллергия | `RISK` | **ICD-10 normalization.** A curated MedTerm subset links spans to canonical concepts. Patients write the same concept many ways — *Fever* (`R50.9`) alone appears as, among 50+ forms: > температура · Температура 38 · t 37 · 37,4 · до 39 · лихорадка · температкра · Темперара (the last two are genuine patient typos) — all normalized to **Fever, unspecified — R50.9**. ### DrugRel — prescription with nested entities and relations A `REGIME` is a *container* span: the tokens inside it also carry nested labels, and each attribute is linked back to its drug by a typed relation. > Левофлоксацин по 500 мг 1 раз в день 5 дней - `DRUG` — **Левофлоксацин** - `REGIME` — **по 500 мг 1 раз в день 5 дней** *(container — its tokens carry a second label)* - `DOSE` — по 500 мг - `FREQ` — 1 раз в день - `DUR` — 5 дней - Relations: `DOSE → DRUG`, `REGIME → DRUG` ### COVID-RMJ — clinical journal article Dense, expert-annotated entities over long documents: > после положительного результата **ПЦР** на **SARS-CoV-2** различные симптомы > (**усталость** — 39,0 %, **головная боль** — 23,2 %, **одышка** — 23,4 % и др.) | span | label | |---|---| | ПЦР | `PROCEDURE` | | SARS-CoV-2 | `DISEASE` | | усталость · головная боль · одышка | `SYMPTOM` | ## Supported tasks The corpora support several clinical-NLP tasks: - **Named entity recognition** — all three corpora (character-offset spans). - **Nested / multi-label token classification** — DrugRel `REGIME` containers (≈22,900 overlapping span pairs); a single token may carry more than one label. - **Relation extraction** — DrugRel drug–attribute relations (8 types). - **Clinical concept normalization / entity linking** — MedTerm entities linked to ICD-10. - **Long-document NER** — COVID-RMJ articles (median ≈2,400 words). - **Cross-corpus and domain-transfer studies**, and **evaluation of LLM prompting** for clinical information extraction across complementary text types. ## Usage ```python from datasets import load_dataset medterm = load_dataset("medlinx/RuClinNER", "medterm") drugrel = load_dataset("medlinx/RuClinNER", "drugrel") covid = load_dataset("medlinx/RuClinNER", "covid_rmj") ex = medterm["test"][0] print(ex["text"]) for e in ex["entities"]: print(e["label"], ":", e["text"], e.get("coding")) ``` ## Data fields **`medterm`** - `id` (string), `text` (string) - `entities`: list of `{start, end, label, text, coding}` where `coding` is `{icd10, name_ru, name_en}` for the normalized subset, else `null`. **`drugrel`** - `id`, `record_id` (string), `text` (string) - `entities`: list of `{id, start, end, label, text}` - `relations`: list of `{type, from_id, to_id, from_text, to_text}` - `patient_age` (int, nullable), `patient_gender` (string, nullable) - `diagnosis` (string), `diagnosis_icd_codes` (list of string) **`covid_rmj`** - `id`, `text` (string) - `text_entities`: list of `{start, end, label, text}` over `text` - `text_tokens`, `text_ner_tags`: pre-tokenized text with BIO tags - `annotation` (string, structured abstract) with `annotation_entities`, `annotation_tokens`, `annotation_ner_tags` ## Splits | Config | train | test | |---|--:|--:| | `medterm` | 3,049 | 1,425 | | `drugrel` | 2,100 | 100 | | `covid_rmj` | 98 | 25 | For MedTerm, the ICD-10 normalization subset (508 records, 1,294 linked entities) falls within the `test` split. For COVID-RMJ, a train/test split is provided here; because the corpus is small (123 documents), the accompanying paper instead evaluates encoders with 5-fold cross-validation. ## Entity and relation types **MedTerm** — `SYMPTOM` (symptoms/signs), `RISK` (risk factors), `DISEASE` (named conditions). **DrugRel** — `DRUG`, `REGIME` (full dosage regimen; container), `DOSE` (numeric dose), `DOSIR` (per-intake instruction), `FREQ`, `DUR`, `TIME`, `USE` (route), `FORM`, `COND` (condition for taking), `INN` (active substance), `NUM`, `NEG`. Relations: `REGIME-DRUG`, `FORM-DRUG`, `DOSE-DRUG`, `USE-DRUG`, `COND-DRUG`, `INN-DRUG`, `NEG-DRUG`, `ALT`. **COVID-RMJ** — `DISEASE`, `PROCEDURE`, `SYMPTOM`, `DRUG`, `ANATOMY`, `LAB_VALUE`. ## Dataset creation Each corpus was annotated by domain experts (medical informaticians, clinical pharmacologists, and medical specialists) following written guidelines. Records were independently annotated and disagreements adjudicated. Inter-annotator agreement (Cohen's κ): MedTerm 0.87 (boundaries) / 0.91 (labels); DrugRel 0.89 (entities) / 0.81 (relations). COVID-RMJ was reviewed by at least two experts with adjudication and passes automated boundary/overlap/BIO consistency checks. ## Considerations for using the data - **Class imbalance** is substantial and corpus-specific (e.g. `SYMPTOM` ≈85% of MedTerm spans; `DISEASE` ≈61% of COVID-RMJ spans). Report macro- as well as micro-averaged metrics. - **MedTerm** contains genuine negatives: ≈18% of records have no annotated entity. - **DrugRel** includes 67 relations with `type=null` (annotation artifacts); exclude these for relation-extraction evaluation. The `RISK`/`DISEASE` distinction can be semantically ambiguous (e.g. obesity). - **DrugRel demographics** skew toward female patients (≈74%), with many pediatric and obstetric records; consider this when transferring models to other populations. - **COVID-RMJ** entity density varies ~100× across documents. ## Personal and sensitive information The data is de-identified: MedTerm and DrugRel records contain no patient names, dates of birth, or contact information; COVID-RMJ articles are published, peer-reviewed texts with no patient-level data. DrugRel patient metadata is limited to coarse age, gender, and ICD-10 diagnosis codes. ## Licensing Released under **Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)** for research use. ## Citation ```bibtex @misc{ruclinner2026, title = {RuClinNER: Russian Clinical Multi-Label NER Annotated Corpora}, author = {Gudkov, Vadim and Varennikova, Anastasia and Miroshnichenko, Polina and Mitrofanova, Olga and Gousyatskaya, Polina and Boitsova, Daria}, year = {2026}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/medlinx/RuClinNER}} } ``` ## Contact Maintained by [Medlinx](https://huggingface.co/medlinx). Questions: `gudkov.v@medlinx.online`.