Upload README.md with huggingface_hub
Browse files29 unmodified lines30313233343513 unmodified lines495051525354555657585960616263646566671 unmodified line6970717273742 unmodified lines77787980818283842 unmodified lines878889909192931 unmodified line959697989910010110229 unmodified lines- GitHub: https://github.com/mizuno-group/cell-cell-bert- Preprint (bioRxiv, 2025): https://doi.org/10.64898/2025.12.01.691726- Pre-trained models: https://huggingface.co/collections/mizuno-group/cell-cell-bert## Citation13 unmodified lines```pythonfrom datasets import load_datasetsemmed_relations = load_dataset("DevWithKaiju/cell-cell-communication", "semmed_relations")["train"]semmed_seed_splits = load_dataset("DevWithKaiju/cell-cell-communication", "semmed_seed_splits")["train"]pubmed_relations = load_dataset("DevWithKaiju/cell-cell-communication", "pubmed_relations")["train"]pubmed_seed_splits = load_dataset("DevWithKaiju/cell-cell-communication", "pubmed_seed_splits")["train"]```For how to reconstruct the train/test split for a given seed, and how to reconstruct thesentence text, see the [GitHub repository](https://github.com/mizuno-group/cell-cell-bert).## Dataset contents1 unmodified lineFor each of the two sources (SemMed, PubMed), two kinds of files are provided. The rawsentence text itself is not included (see "About the sentence text" below).### `*_relations.csv`Each row corresponds to one (sentence, entity pair). `label` is binary: 0 (no relation)2 unmodified lines| config | columns | description || --- | --- | --- || `pubmed_relations` | `id, pmid, label, entity_0_id, entity_1_id, sentence_start, sentence_end, entity_0_start, entity_0_end, entity_1_start, entity_1_end` | Offsets within the PubMed abstract identified by `pmid`. `entity_*_id` are Cell Ontology IDs || `semmed_relations` | `id, pmid, pred_id, label, entity_0_start, entity_0_end, entity_1_start, entity_1_end` | Offsets within the corresponding SemMedDB sentence (`pred_id` is the SemMedDB prediction ID) |### `*_seed_splits.csv`2 unmodified lines| config | columns | description || --- | --- | --- || `pubmed_seed_splits` | `seed, id` | PubMed is used as a test-only dataset (no train split) || `semmed_seed_splits` | `seed, split, id` | `split` is `train` or `test` |## About the sentence text1 unmodified lineFor licensing reasons, the raw sentence text itself is not included in this dataset. Toreconstruct it:- For PubMed-derived rows: fetch the public PubMed abstract by `pmid`, then slice it using`sentence_start`/`sentence_end` and `entity_*_start`/`entity_*_end`.- For SemMed-derived rows: obtain the corresponding sentence from SemMedDB (requiresseparate licensed access) identified by `pred_id`, then slice it using`entity_*_start`/`entity_*_end`.29 unmodified lines303132333435363713 unmodified lines51525354555657585960616263641 unmodified line6667686970717273747576772 unmodified lines80818283848586872 unmodified lines909192939495961 unmodified line989910010110210310410510610729 unmodified lines- GitHub: https://github.com/mizuno-group/cell-cell-bert- Preprint (bioRxiv, 2025): https://doi.org/10.64898/2025.12.01.691726(Currently a preprint; a journal submission is planned. The citation will be updatedonce published.)- Pre-trained models: https://huggingface.co/collections/mizuno-group/cell-cell-bert## Citation13 unmodified lines```pythonfrom datasets import load_datasetsemmed_relations = load_dataset("DevWithKaiju/cell-cell-communication", "semmed_relations")["train"]semmed_seed_splits = load_dataset("DevWithKaiju/cell-cell-communication", "semmed_seed_splits")["train"]pubmed_relations = load_dataset("DevWithKaiju/cell-cell-communication", "pubmed_relations")["train"]pubmed_seed_splits = load_dataset("DevWithKaiju/cell-cell-communication", "pubmed_seed_splits")["train"]```For how to reconstruct the train/test split for a given seed, and how to reconstruct thesentence text, see the [GitHub repository](https://github.com/mizuno-group/cell-cell-bert).## Dataset contents1 unmodified lineFor each of the two sources (SemMed, PubMed), two kinds of files are provided. The rawsentence text itself is not included (see "About the sentence text" below).### Data sources- SemMed: SemMedDB VER43_R (processed using MEDLINE Baseline 2022 + PubMed update filesthrough May 8, 2024).- PubMed: 2025 annual baseline.### `*_relations.csv`Each row corresponds to one (sentence, entity pair). `label` is binary: 0 (no relation)2 unmodified lines| config | columns | description || --- | --- | --- || `pubmed_relations` | `id, pmid, entity_0_id, entity_1_id, sentence_start, sentence_end, entity_0_start, entity_0_end, entity_1_start, entity_1_end, label` | `sentence_start`/`sentence_end` are absolute offsets into the PubMed abstract identified by `pmid`; `entity_*_start`/`entity_*_end` are offsets relative to that sentence (not the abstract). `entity_*_id` are Cell Ontology IDs || `semmed_relations` | `id, pred_id, entity_0_start, entity_0_end, entity_1_start, entity_1_end, label` | `entity_*_start`/`entity_*_end` are offsets relative to the corresponding SemMedDB sentence (`pred_id` is the SemMedDB prediction ID; no `pmid` column, as it is not needed to resolve the sentence) |### `*_seed_splits.csv`2 unmodified lines| config | columns | description || --- | --- | --- || `pubmed_seed_splits` | `seed, split, id` | PubMed is used as a test-only dataset, so `split` is always `test` || `semmed_seed_splits` | `seed, split, id` | `split` is `train` or `test` |## About the sentence text1 unmodified lineFor licensing reasons, the raw sentence text itself is not included in this dataset. Toreconstruct it:- For PubMed-derived rows: fetch the public PubMed abstract by `pmid`, slice it using`sentence_start`/`sentence_end` (both are absolute offsets into the abstract) to get thesentence, then slice `entity_*_start`/`entity_*_end` **from that sentence** (not from theabstract) — entity offsets are relative to the sentence, not to the abstract.- For SemMed-derived rows: obtain the corresponding sentence from SemMedDB (requiresseparate licensed access) identified by `pred_id`, then slice `entity_*_start`/`entity_*_end` from that sentence (also sentence-relative).
README.md+22-17