Skip to content

Commit bdafa57

Browse files
authored
Merge pull request #481 from PyThaiNLP/hotfix-bug-normalize
Fix remove_repeat_vowels() bug that remove spaces between vowel
2 parents 261f032 + 830edab commit bdafa57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/util/normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
f"{follow_v}{lead_v}{above_v}{below_v}\u0e3a\u0e4c\u0e4d\u0e4e"
3939
)
4040
_NOREPEAT_PAIRS = list(
41-
zip([f"({ch}[ ]*)+" for ch in _NOREPEAT_CHARS], _NOREPEAT_CHARS)
41+
zip([f"({ch}[ ]*)+{ch}" for ch in _NOREPEAT_CHARS], _NOREPEAT_CHARS)
4242
)
4343

4444
_RE_TONEMARKS = re.compile(f"[{tonemarks}]+")

0 commit comments

Comments
 (0)