Skip to content

Commit e1a5478

Browse files
authored
Merge pull request #963 from bact/deprecate
Add version to deprecation warnings
2 parents dd1b3f8 + cd6a47b commit e1a5478

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pythainlp/cls/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from pythainlp.classify.param_free import GzipModel
1212
from pythainlp.tools import warn_deprecation
1313

14-
warn_deprecation("pythainlp.cls", "pythainlp.classify", "5.1")
14+
warn_deprecation("pythainlp.cls", "pythainlp.classify", "5.2")

pythainlp/corpus/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def thai_synonym() -> dict:
339339
warn_deprecation(
340340
"pythainlp.corpus.thai_synonym",
341341
"pythainlp.corpus.thai_synonyms",
342-
"5.1",
342+
"5.2",
343343
)
344344
return thai_synonyms()
345345

pythainlp/util/normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,6 @@ def maiyamok(sent: Union[str, List[str]]) -> List[str]:
331331
# output: ['คน', 'คน', 'นก']
332332
"""
333333
warn_deprecation(
334-
"pythainlp.util.maiyamok", "pythainlp.util.expand_maiyamok"
334+
"pythainlp.util.maiyamok", "pythainlp.util.expand_maiyamok", "5.2"
335335
)
336336
return expand_maiyamok(sent)

0 commit comments

Comments
 (0)