-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Labels
bugbugs in the librarybugs in the library
Description
Description
print(tone_detector("ครับ"))
result: f
print(tone_detector("ค่ะ"))
result: h
Expected results
"ครับ" should be high tone
"ค่ะ" should be falling tone
Current results
"ครับ": falling tone
"ค่ะ": high tone
Steps to reproduce
print(tone_detector("ครับ"))
print(tone_detector("ค่ะ"))
PyThaiNLP version
5.0.4
Python version
3.10.15
Operating system and version
macOS 15.1.1
More info
No response
Possible solution
the falling tone result for "ครับ" is derived from below code block in syllable.py
elif ( initial_consonant_type == "low" and syllable_check_length == "long" and syllable_check == "close" and s == "dead" ): r = "f"
Files
No response
bact
Metadata
Metadata
Assignees
Labels
bugbugs in the librarybugs in the library