You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just had an idea: if we parse the word to obtain its pronunciation (คำอ่าน) first (maybe by using pythainlp.transliterate.pronunciate), it might be easier to determine the correct marttra (มาตรา). However, I have not tested this yet, so I am unsure if it will work.
Description
check_marttra()
method inpythainlp.khavee.KhaveeVerifier
does not properly handel "กร" as a final consonant.Expected results
check_marttra("จักร") returns "กก"
Current results
check_marttra("จักร") returns "กน"
See a run in PR #967 at https://github.com/PyThaiNLP/pythainlp/actions/runs/11641064036/job/32419112079?pr=967
Steps to reproduce
PyThaiNLP version
5.0.4
More cases
All of these following test cases at
pythainlp/tests/test_khavee.py
Line 16 in 0c970fd
The text was updated successfully, but these errors were encountered: