Update: 初学记、佩文韵府 and 五车韵瑞

This commit is contained in:
denglifan
2026-03-22 16:18:35 +08:00
parent df475fd03f
commit 183b842090
553 changed files with 754048 additions and 169 deletions

View File

@@ -0,0 +1,5 @@
import re
text = "對語〈渭北 江東〉〈 平北 安東〉摘句〈力障百川東〉"
tokens = re.findall(r"([^〈〉]*)((?:〈[^〉]+〉)+)", text)
for i, (word, desc_blocks) in enumerate(tokens):
print(f"Token {i}: WORD='{word}' DESCS={desc_blocks}")