classical-ja-pretrain / code /scripts /minhon_preprocess_rules.json
kuramot6f's picture
Initial release (history squashed)
7a088d4
Raw History Blame Contribute Delete
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."
}