classical-tcm-canon / README.md
wangekxy's picture
Publish/update Classical TCM Canon
b0d3f91 verified
|
Raw
History Blame Contribute Delete
4.18 kB
metadata
license: other
license_name: proprietary-commercial
language:
  - zh
pretty_name: Classical Chinese Medicine Canon (中医经典文本)
task_categories:
  - text-generation
  - text-retrieval
tags:
  - chinese-medicine
  - traditional-chinese-medicine
  - tcm
  - 中医
  - 中医药
  - 中醫
  - herbal-medicine
  - materia-medica
  - classical-chinese
  - medical
  - 古籍
  - public-domain
size_categories:
  - n<1K
configs:
  - config_name: default
    data_files:
      - split: train
        path: classical-tcm-canon.parquet

Classical Chinese Medicine Canon — 中医经典文本数据集 (v1)

A curated Traditional Chinese Medicine (TCM) text dataset: clean, full-text digitizations of the foundational Chinese medicine canon — the 内经 (Inner Canon), 难经, 伤寒论 (Treatise on Cold Damage), 金匮要略, and 温病 (warm-disease) classics — assembled from public-domain source works. Useful for LLM training, RAG, and search over classical Chinese medicine / 中医药 literature.

Summary

  • 115 distinct works, 9,401,166 Chinese characters (~9.40M)
  • Source: pre-modern works whose authors died before 1912 (China copyright = life + 50y)
  • Zero OCR — every record is extracted directly from a text-format source, not a scan
  • Held back (not in this release): 10 single-source works pending second-source cross-validation (see canon_v1_hold.jsonl)

Provenance & rights

Each record is a faithful transcription of a public-domain classical work. The underlying texts are out of copyright; the digital transcription carries no new copyright (faithful reproduction of a PD text). Rights basis per record is recorded in rights.basis, backed by an author death-year ledger (../rights_ledger.txt). Editions containing a modern annotator's copyrighted commentary were excluded (see Quality control).

Table of contents

work family works chars
伤寒论 57 4.58M
黄帝内经素问 16 1.74M
金匮要略 13 1.08M
黄帝内经 6 0.54M
黄帝内经灵枢 3 0.33M
黄帝内经太素 1 0.33M
温热/温疫 8 0.32M
难经 6 0.22M
温热经纬 1 0.11M
温病条辨 1 0.10M
黄帝明堂 1 0.02M
温病(其他) 1 0.01M
其他经典 1 0.01M

Schema (one JSON object per line)

field meaning
id stable record id
work_family canonical work the text belongs to (e.g. 伤寒论)
title edition/commentary title
source_format doc / chm / txt — original format in the source archive
extraction_method TEXT_EXTRACT (no OCR)
edition_type scan_original / modern_collated
rights {status, basis} — PD basis (author/dynasty)
source_meta parsed 书名/作者/朝代 where available
char_count, cjk_ratio size / Chinese-character density
validation how the text was cross-checked
ship_tier A=validated, B=single-source clean-format
text the clean full text

Quality control (pipeline)

  1. Source priority — text-format twin preferred; the curated 中华医书集成 numbered series is treated as authoritative.
  2. Garbage gate — mojibake extractions (common-Hanzi ratio < 4%) rejected.
  3. De-junking — web-compilation ads/nav/pinyin/contact lines stripped; CJK de-spaced.
  4. 繁简-normalized cross-validation — copies of a work compared via OpenCC-normalized 12-gram overlap; ≥0.85 = validated.
  5. Contamination exclusion — editions weaving a modern annotator's copyrighted commentary into the PD base text are removed (e.g. 唐步祺 闡釋 of 伤寒恒论).
  6. External spot-check — flagship works verified against Wikisource PD reference.

Validation mix (release): {'single_source': 61, 'validated_multisource': 53, 'validated_minor_variance': 1}

Known limitations

  • Punctuation/collation follows each source edition (modern editors' 标点).
  • 异体字 variants (e.g. 脏/藏, 腑/府) appear as in the source.
  • 10 single-source .chm works are held for v1.1 pending an independent second source (their scanned-PDF twins will be OCR'd in Phase 2 to cross-validate).