Skip to content

Commit

Permalink
Merge pull request #919 from bact/add-desc-tone-detector
Browse files Browse the repository at this point in the history
Update tone_detector() API description
  • Loading branch information
bact authored Jun 23, 2024
2 parents adc6967 + 55d9575 commit 43f5cc5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pythainlp/util/syllable.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,17 @@ def tone_detector(syllable: str) -> str:
"""
Thai tone detector for syllables
Return tone of a syllable.
- l: low
- m: mid
- r: rising
- f: falling
- h: high
- empty string: cannot be detected
:param str syllable: Thai syllable
:return: syllable's tone (l, m, h, r, f or empty if it cannot be detected)
:return: syllable's tone (l, m, h, r, f) or empty if it cannot be detected
:rtype: str
:Example:
Expand Down

0 comments on commit 43f5cc5

Please sign in to comment.