Skip to content

Commit d4de927

Browse files
authored
Update attacut.py (build and deploy docs)
1 parent fbc87a5 commit d4de927

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pythainlp/tokenize/attacut.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*
12
"""
23
Wrapper for AttaCut - Fast and Reasonably Accurate Word Tokenizer for Thai
34
:See Also:
@@ -9,6 +10,11 @@
910

1011

1112
def segment(text: str) -> List[str]:
13+
"""
14+
Wrapper for AttaCut - Fast and Reasonably Accurate Word Tokenizer for Thai
15+
:param str text: text to be tokenized to words
16+
:return: list of words, tokenized from the text
17+
"""
1218
if not text or not isinstance(text, str):
1319
return []
1420

0 commit comments

Comments
 (0)