We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 261f032 + 830edab commit bdafa57Copy full SHA for bdafa57
pythainlp/util/normalize.py
@@ -38,7 +38,7 @@
38
f"{follow_v}{lead_v}{above_v}{below_v}\u0e3a\u0e4c\u0e4d\u0e4e"
39
)
40
_NOREPEAT_PAIRS = list(
41
- zip([f"({ch}[ ]*)+" for ch in _NOREPEAT_CHARS], _NOREPEAT_CHARS)
+ zip([f"({ch}[ ]*)+{ch}" for ch in _NOREPEAT_CHARS], _NOREPEAT_CHARS)
42
43
44
_RE_TONEMARKS = re.compile(f"[{tonemarks}]+")
0 commit comments