Skip to content

Commit

Permalink
Add clause_tokenize warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Dec 12, 2024
1 parent 5971300 commit 2f9bb3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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 Down Expand Up @@ -43,6 +44,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

0 comments on commit 2f9bb3b

Please sign in to comment.