File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 55Generic functions of tokenizers
66"""
77import re
8+ import warnings
89from typing import Iterable , List , Union
910
1011from pythainlp .tokenize import (
@@ -29,6 +30,9 @@ def clause_tokenize(doc: List[str]) -> List[List[str]]:
2930 Tokenizes running word list into list of clauses (list of strings).
3031 Split by CRF trained on Blackboard Treebank.
3132
33+ **Warning**: *clause_tokenize* is no longer supported\
34+ and will be removed in version 5.1.
35+
3236 :param str doc: word list to be clause tokenized
3337 :return: list of clauses
3438 :rtype: list[list[str]]
@@ -43,6 +47,11 @@ def clause_tokenize(doc: List[str]) -> List[List[str]]:
4347 """
4448 from pythainlp .tokenize .crfcls import segment
4549
50+ warnings .warn (
51+ """
52+ clause_tokenize is no longer supported \
53+ and will be removed in version 5.1.
54+ """ , DeprecationWarning )
4655 return segment (doc )
4756
4857
You can’t perform that action at this time.
0 commit comments