Publish/update Classical TCM Canon
Browse files- CONTENTS.md +36 -0
- README.md +78 -0
- sample.jsonl +0 -0
CONTENTS.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contents — Classical Chinese Punctuation Restoration (full set)
|
| 2 |
+
|
| 3 |
+
**5,314,004 public supervised pairs** (train/val/test) + **81,929 held-out
|
| 4 |
+
eval pairs** (licensed separately), across 10 canons. One parquet shard per canon.
|
| 5 |
+
|
| 6 |
+
| Canon | Shard | Pairs |
|
| 7 |
+
|---|---|---:|
|
| 8 |
+
| Buddhist 佛 | `04佛藏-5678部` | 1,379,219 |
|
| 9 |
+
| History 史 | `06史藏-1725部` | 1,343,223 |
|
| 10 |
+
| Collected Lit 集 | `08集藏-1467部` | 1,001,378 |
|
| 11 |
+
| Medicine 医 | `09医藏-0869部` | 493,765 |
|
| 12 |
+
| Poetry·Drama 诗 | `07诗藏-0322部` | 322,731 |
|
| 13 |
+
| Masters·Philosophy 子 | `05子藏-1155部` | 312,398 |
|
| 14 |
+
| Daoist 道 | `03道藏-1689部` | 223,149 |
|
| 15 |
+
| Confucian 儒 | `02儒藏-0370部` | 154,202 |
|
| 16 |
+
| Yi / Divination 易 | `01易藏-0195部` | 56,946 |
|
| 17 |
+
| Arts 艺 | `10艺藏-0386部` | 26,993 |
|
| 18 |
+
|
| 19 |
+
**Total public:** 5,314,004 pairs · **Held-out eval:** 81,929 pairs
|
| 20 |
+
|
| 21 |
+
## Schema
|
| 22 |
+
| field | meaning |
|
| 23 |
+
|---|---|
|
| 24 |
+
| `task` | `punctuate_classical_chinese` |
|
| 25 |
+
| `instruction` | zh task prompt |
|
| 26 |
+
| `input` | unpunctuated passage (hanzi only) |
|
| 27 |
+
| `output` | gold punctuated passage |
|
| 28 |
+
| `split` | train / val / test |
|
| 29 |
+
| `title` `dynasty` `author` `canon` | source attribution |
|
| 30 |
+
|
| 31 |
+
Passages are 120–360 hanzi, segmented at 。!?. Guarantee: for every record,
|
| 32 |
+
`input` equals `output` with all punctuation removed.
|
| 33 |
+
|
| 34 |
+
## Delivery
|
| 35 |
+
Full parquet shards + held-out eval delivered on purchase.
|
| 36 |
+
📧 **`wangeksy@gmail.com`** — request a quote or the companion-dataset catalog.
|
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: commercial-paid
|
| 4 |
+
language:
|
| 5 |
+
- lzh
|
| 6 |
+
- zh
|
| 7 |
+
pretty_name: Classical Chinese Punctuation Restoration (文言文断句·标点) — Commercial
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-generation
|
| 10 |
+
- token-classification
|
| 11 |
+
tags:
|
| 12 |
+
- classical-chinese
|
| 13 |
+
- 文言文
|
| 14 |
+
- punctuation-restoration
|
| 15 |
+
- 句读
|
| 16 |
+
- sft
|
| 17 |
+
- instruction-tuning
|
| 18 |
+
- commercial-dataset
|
| 19 |
+
size_categories:
|
| 20 |
+
- 1M<n<10M
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: sample
|
| 23 |
+
data_files: sample.jsonl
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# Classical Chinese Punctuation Restoration · 文言文断句·标点 💰 (Commercial Dataset)
|
| 27 |
+
|
| 28 |
+
> **This is a commercial dataset.** A free **200-record sample** is provided below
|
| 29 |
+
> (`sample.jsonl`); the **full 5.3M-pair corpus is available upon request**.
|
| 30 |
+
>
|
| 31 |
+
> 📧 **To license / purchase or request a quote, email `wangeksy@gmail.com`.**
|
| 32 |
+
> ✅ Cleared for **commercial use** — built from public-domain classical works.
|
| 33 |
+
|
| 34 |
+
## The task
|
| 35 |
+
Restore punctuation and sentence segmentation (句读) to unpunctuated Classical
|
| 36 |
+
Chinese — a capability current LLMs perform poorly and inconsistently. Each record
|
| 37 |
+
is an auto-verifiable supervised pair: the `input` is unpunctuated hanzi, the
|
| 38 |
+
`output` is the same text with gold punctuation.
|
| 39 |
+
|
| 40 |
+
```json
|
| 41 |
+
{"task":"punctuate_classical_chinese",
|
| 42 |
+
"instruction":"为下面的文言文断句并加上标点。",
|
| 43 |
+
"input":"韩信之后也当淮阴钟室难作之时有客匿其孤求抚于萧相国…",
|
| 44 |
+
"output":"韩信之后也。当淮阴钟室难作之时,有客匿其孤,求抚于萧相国…",
|
| 45 |
+
"title":"坚瓠集","dynasty":"清","author":"褚人获","canon":"子藏"}
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## What you get (full set)
|
| 49 |
+
- **5,314,004 supervised pairs** across 10 canons of classical Chinese (history,
|
| 50 |
+
philosophy, poetry, religion, medicine, arts), spanning the 汉–清 dynasties.
|
| 51 |
+
- Train / validation / test splits, plus an **81,929-pair held-out evaluation set**
|
| 52 |
+
(contamination-controlled; licensed separately).
|
| 53 |
+
- Per-work attribution: `title`, `dynasty`, `author`, `canon`.
|
| 54 |
+
- Parquet (zstd) shards, one per canon. See `CONTENTS.md` for the full breakdown.
|
| 55 |
+
|
| 56 |
+
## Why it is high quality
|
| 57 |
+
- **Auto-verifiable labels.** Each `input` is produced by *stripping* an
|
| 58 |
+
authoritative edition's punctuation from the `output`, so `input == output`
|
| 59 |
+
minus punctuation by construction (QC: 0 mismatches). No second LLM touches the
|
| 60 |
+
labels — clean provenance, no synthetic distillation.
|
| 61 |
+
- **Leakage-controlled.** Split **by work**, not by passage. Mojibake-rejected,
|
| 62 |
+
punctuation-density filtered, globally de-duplicated; cross-canon duplicate works
|
| 63 |
+
collapsed to one canonical copy.
|
| 64 |
+
|
| 65 |
+
## This repo (listing)
|
| 66 |
+
Public **200-record sample** only (`sample.jsonl`). The full corpus, per-canon
|
| 67 |
+
shards, and held-out eval are delivered on purchase. Payment and delivery are
|
| 68 |
+
handled off-platform — **email `wangeksy@gmail.com`**.
|
| 69 |
+
|
| 70 |
+
## Provenance & rights
|
| 71 |
+
Base texts are public-domain classical works (汉–清). An editorial-rights-clean,
|
| 72 |
+
**independently re-punctuated** tier (labels produced from the public-domain text
|
| 73 |
+
without any third-party 整理本) is available on request for redistribution use cases.
|
| 74 |
+
|
| 75 |
+
## Related
|
| 76 |
+
Companion commercial datasets from the same corpus: **校勘 Variant Collation**
|
| 77 |
+
(aligned recensions) and an expert-graded **文言→白话 Translation + QA evaluation**
|
| 78 |
+
set. Email for the catalog.
|
sample.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|