Skip to content

Commit

Permalink
Update thai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bact committed Jun 13, 2021
1 parent 93b9006 commit b244359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pythainlp/util/thai.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float:
from pythainlp.util import countthai
countthai("ไทยเอ็นแอลพี 2.3")
# output: 100.0
countthai("PyThaiNLP 2.3")
# output: 0.0
Expand Down

0 comments on commit b244359

Please sign in to comment.