Datasets:
Download code/scripts/minhon_preprocess_rules.json from kuramot6f/classical-ja-pretrain: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/datasets/kuramot6f/classical-ja-pretrain/resolve/main/code/scripts/minhon_preprocess_rules.json
- Command line
-
hf download hf://datasets/kuramot6f/classical-ja-pretrain/code/scripts/minhon_preprocess_rules.json
-
curl -L -o minhon_preprocess_rules.json https://huggingface.co/datasets/kuramot6f/classical-ja-pretrain/resolve/main/code/scripts/minhon_preprocess_rules.json
1.42 kB
| { | |
| "version": "minhon-clean-v1-draft4-aggressive", | |
| "round_brackets_policy": "drop_all", | |
| "legacy_editorial_policy": "drop", | |
| "missing_character_policy": "drop", | |
| "references": [ | |
| "https://www.wiki.honkoku.org/doku.php?id=howto_markup", | |
| "https://www.wiki.honkoku.org/doku.php?id=guidelines" | |
| ], | |
| "tags": { | |
| "振り仮名": "ruby", | |
| "ルビ": "ruby", | |
| "送り仮名": "unwrap", | |
| "返り点": "drop", | |
| "割書": "join", | |
| "箱": "unwrap", | |
| "題": "unwrap", | |
| "場所": "unwrap", | |
| "圏点": "first", | |
| "見せ消ち": "correction" | |
| }, | |
| "editorial_brackets": {"〖": "〗"}, | |
| "legacy_editorial_brackets": {"【": "】"}, | |
| "admin_line_patterns": [ | |
| "^[ \\t]*(?:石本文庫|資料整理番号|マイクロフィルム(?:No\\.?)?|撮影年月日|撮影年月|撮影者|デジタル化年月日|請求記号)[ \\t::]*[A-Za-z0-90-9年月日/._:: \\t-]+[ \\t]*$" | |
| ], | |
| "max_removal_ratio": 0.65, | |
| "min_chars_for_removal_review": 100, | |
| "max_missing_ratio": 0.05, | |
| "min_missing_for_review": 5, | |
| "sample_per_feature": 4, | |
| "description": "User-authorized aggressive extraction: delete balanced round brackets and notes including contents; delete missing-character squares. Preserve layout whitespace on nonempty pages. Unknown tags and unclosed brackets are retained and flagged. No general NFKC, spelling modernization, inferred repairs, or document concatenation." | |
| } | |