Skip to content

PyThaiNLP v5.3.8 Released!

Latest

Choose a tag to compare

@wannaphong wannaphong released this 24 Sep 18:40
· 1 commit to 5.3 since this release

Deprecated

  • Add warn deprecation pythainlp.generate.thai2fit, pythainlp.generate.wangchanglm, and pythainlp.chat. (PR #1519)

Fixed

  • pythainlp.transliterate.romanize with the thai2rom and thai2rom_onnx engines: greedy decoding could get stuck in a cycle and run to the hard 100-character length cap, returning strings like krungtheppaaaa...aaaa for 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-decoding Seq2Seq loop as thai2rom could 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 for thai2rom. (PR #1501)
  • pythainlp.util.text_to_num: handle Thai zero ("ศูนย์") in floating-point (PR #1503)

Full Changelog: v5.3.7...v5.3.8