Skip to content

Upstramming main into dev - #1522

Merged
wannaphong merged 15 commits into
devfrom
patch-dev
Sep 24, 2026
Merged

wannaphong merged 15 commits into
devfrom
patch-dev

Conversation

@wannaphong

Copy link
Copy Markdown
Member

Upstramming main into dev

wannaphong and others added 15 commits September 25, 2026 00:31
…function

Added a deprecation warning for the gen_sentence function in thai2fit.py.
Added a deprecation warning for WangChanGLM class.
Added deprecation warning for ChatBotModel.
Removed unused imports from fastai and updated type hints.
Add warn deprecation pythainlp.generate.thai2fit, pythainlp.generate.wangchanglm, and pythainlp.chat
Add warn deprecation pythainlp.generate.thai2fit, pythainlp.generate.wangchanglm, and pythainlp.chat
## 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)
PyThaiNLP v5.3.8 Released!
@wannaphong
wannaphong merged commit 4f7f7eb into dev Sep 24, 2026
13 of 23 checks passed
@wannaphong
wannaphong deleted the patch-dev branch September 24, 2026 19:14
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant