Skip to content

Commit b244359

Browse files
authored
Update thai.py
1 parent 93b9006 commit b244359

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythainlp/util/thai.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float:
8888
8989
from pythainlp.util import countthai
9090
91+
countthai("ไทยเอ็นแอลพี 2.3")
92+
# output: 100.0
93+
9194
countthai("PyThaiNLP 2.3")
9295
# output: 0.0
9396

0 commit comments

Comments
 (0)