Skip to content

Commit 717c185

Browse files
authored
Fix syntax errors in core.py example
1 parent 495874c commit 717c185

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythainlp/tokenize/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ def word_tokenize(
209209
# ['ชิน', 'โซ', ' ', 'อา', 'เบะ', ' ',
210210
# 'เกิด', ' ', '21', ' ', 'กันยายน']
211211
212-
custom_dict_japanese_name = set(thai_words()
212+
custom_dict_japanese_name = set(thai_words())
213213
custom_dict_japanese_name.add('ชินโซ')
214214
custom_dict_japanese_name.add('อาเบะ')
215215
216216
trie = dict_trie(dict_source=custom_dict_japanese_name)
217217
218-
word_tokenize(text, engine="newmm", custom_dict=trie))
218+
word_tokenize(text, engine="newmm", custom_dict=trie)
219219
# output:
220220
# ['ชินโซ', ' ', 'อาเบะ', ' ',
221221
# 'เกิด', ' ', '21', ' ', 'กันยายน']

0 commit comments

Comments
 (0)