Skip to content

Commit 2949984

Browse files
committed
Add expand_maiyamok to __init__.py
1 parent 091a675 commit 2949984

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pythainlp/util/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"display_thai_char",
2020
"emoji_to_thai",
2121
"eng_to_thai",
22+
"expand_maiyamok",
2223
"find_keyword",
2324
"ipa_to_rtgs",
2425
"is_native_thai",
@@ -97,6 +98,7 @@
9798
remove_tonemark,
9899
remove_zw,
99100
reorder_vowels,
101+
expand_maiyamok,
100102
)
101103
from pythainlp.util.numtoword import bahttext, num_to_thaiword
102104
from pythainlp.util.phoneme import ipa_to_rtgs, nectec_to_ipa, remove_tone_ipa
@@ -117,7 +119,7 @@
117119
from pythainlp.util.trie import Trie, dict_trie
118120
from pythainlp.util.wordtonum import text_to_num, thaiword_to_num, words_to_num
119121

120-
# syllable and pronounce have to be imported last
122+
# sound_syllable and pronounce have to be imported last
121123
from pythainlp.util.syllable import (
122124
sound_syllable,
123125
syllable_length,

tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def test_normalize(self):
531531
self.assertEqual(remove_zw("\u200bกา"), "กา")
532532
self.assertEqual(remove_zw("กา\u200b\u200c\u200b"), "กา")
533533

534-
# maiyamok
534+
# expand maiyamok
535535
self.assertEqual(
536536
maiyamok("เด็กๆชอบไปโรงเรียน"),
537537
["เด็ก", "เด็ก", "ชอบ", "ไป", "โรงเรียน"],

0 commit comments

Comments
 (0)