Skip to content

Commit 1ca2961

Browse files
authored
Update core.py
1 parent 5e602d1 commit 1ca2961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythainlp/tokenize/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ def word_tokenize(
200200
elif not isinstance(custom_dict, str) and custom_dict is not None:
201201
raise ValueError(
202202
f"""Tokenizer \"{engine}\":
203-
Custom_dict must be a dictionary name as assigned with load_dict().
203+
custom_dict must be a str.
204+
It is a dictionary name as assigned with load_dict().
204205
See pythainlp.tokenize.nlpo3.load_dict()"""
205206
)
206207
else:

0 commit comments

Comments
 (0)