Deprecated
- Add warn deprecation
pythainlp.generate.thai2fit,pythainlp.generate.wangchanglm, andpythainlp.chat. (PR #1519)
Fixed
pythainlp.transliterate.romanizewith thethai2romandthai2rom_onnxengines: greedy decoding could get stuck in a cycle and run to the hard 100-character length cap, returning strings likekrungtheppaaaa...aaaafor inputs such asกรุงเทพฯ,ฯลฯ, or long Pali/Sanskrit-derived compounds. Decoding now stops as soon as a short output cycle repeats 3 times in a row. (issue #1403, PR #1500)pythainlp.transliterate.thaig2p.transliterate: found while fixing issue #1403, the same greedy-decodingSeq2Seqloop asthai2romcould get stuck in a repetition cycle and run to the hard 100-character cap for the same class of inputs (e.g.สตรีเศรษฐบุตรบำเพ็ญ, and long unsegmented multi-word phrases). Fixed with the same cycle-detection guard used forthai2rom. (PR #1501)pythainlp.util.text_to_num: handle Thai zero ("ศูนย์") in floating-point (PR #1503)
Full Changelog: v5.3.7...v5.3.8