Skip to content

Commit

Permalink
add control characters
Browse files Browse the repository at this point in the history
  • Loading branch information
omukazu committed May 9, 2024
1 parent 68ba9f4 commit b0d7654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kwja/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
# ---------- char module|text normalization ----------
# 制御文字(\t,\nを含む)は削除
TRANSLATION_TABLE: Dict[int, Optional[int]] = str.maketrans(
'"#▁', "”#▂", "".join(chr(i) for i in [*range(32), *range(127, 160)])
'"#▁', "”#▂", "".join(chr(i) for i in [*range(32), *range(127, 160), 5760, *range(8232, 8234)])
)


Expand Down

0 comments on commit b0d7654

Please sign in to comment.