Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pythainlp/tokenize/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Generic functions of tokenizers
"""
import re
import warnings
from typing import Iterable, List, Union

from pythainlp.tokenize import (
Expand All @@ -29,6 +30,9 @@ def clause_tokenize(doc: List[str]) -> List[List[str]]:
Tokenizes running word list into list of clauses (list of strings).
Split by CRF trained on Blackboard Treebank.

**Warning**: *clause_tokenize* is no longer supported\
and will be removed in version 5.1.

:param str doc: word list to be clause tokenized
:return: list of clauses
:rtype: list[list[str]]
Expand All @@ -43,6 +47,11 @@ def clause_tokenize(doc: List[str]) -> List[List[str]]:
"""
from pythainlp.tokenize.crfcls import segment

warnings.warn(
"""
clause_tokenize is no longer supported \
and will be removed in version 5.1.
""", DeprecationWarning)
return segment(doc)


Expand Down
Loading