Repository navigation
Conversation
Upstreaming from v5.3 (v5.3.5)
Upstreaming from 5.3.7 to dev
Add SPDX license information to fastthaig2p.py
Thai G2P v4 model is a Thai grapheme-to-phoneme Conversion model (Thai-to-IPA Conversion) that trained on pythainlp/thai-g2p-v4-dataset. Hugging Face model and training script: https://huggingface.co/pythainlp/thaig2p-v4
`pythainlp.tokenize.attacut`,`pythainlp.tokenize.oskut`, and `pythainlp.tokenize.sefr_cut`: migrated to use [LEKCut](https://github.com/PyThaiNLP/LEKCut) (ONNX), removing legacy `attacut` (PyTorch), `oskut` (TensorFlow), and `sefr_cut` (TensorFlow) package dependencies. The `segment()` APIs remain fully backward compatible. Attacut tests moved from `tests/noauto_torch/` to `tests/noauto_onnx/`.
Add word tokenization evaluation metrics (`evaluate_word_tokenization`, `word_eval_function`, `char_eval_function`, `TokenizationScore`) from SEFR CUT (`sefr_cut.evaluation`) to `pythainlp.benchmarks`.
Add FastThaiG2P
Add Thai G2P v4 model
Change attacut, oskut, and sefr-cut to use LEKCut
Add word tokenization evaluation metrics from SEFR CUT
Upstramming main into dev
Upstramming main into dev
…nd pythainlp.chat
Remove pythainlp.generate.thai2fit, pythainlp.generate.wangchanglm, and pythainlp.chat
tcc() matched against text[p:], copying the rest of the text for every character cluster. Match in place with pattern.match(text, p) instead. This was ~93% of newmm's time on a 608,000-character input. Co-Authored-By: Claude Code <noreply@anthropic.com>
CI on dev currently fails ruff, mypy, bandit, markdownlint and the
Python 3.9/3.10 unit tests, which hides real regressions in PRs.
- word_tokenization: drop "evaluation" from __all__ (no such name, so
`from ... import *` raised AttributeError); narrow the input type in
_normalize_evaluation_input with cast() instead of returning a union.
- wiktionary: only look up tone marks when a tone was found.
- wordtonum, ulmfit.document_vector: add missing annotations.
- fastthaig2p: rename `token` to `chunk` in _email_to_thai (bandit B105
false positive on `token = ""`).
- tests: sort imports in test_fastthaig2p; remove an unused type: ignore;
patch thaig2p_v4 through the module object, because on Python < 3.11
mock.patch("pythainlp.transliterate.thaig2p_v4.transliterate") resolves
"pythainlp.transliterate" to the re-exported function.
- CHANGELOG.md, corpus_license.md: fix markdownlint errors.
No behavior change intended.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Fix lint, type-check, bandit and markdownlint failures on dev
…c-slice-fix Fix quadratic slowdown in tcc_p.tcc on long text
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Sync main into dev (docstring fixes, PR 1553)
Sync main into dev (model metadata) - PyThaiNLP#1559
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- Bump pyproject.toml, __init__.py, CITATION.cff, codemeta.json - Keep the README version row at the latest release - Let bump-my-version skip README entries that do not match Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Ignore this one.
What do these changes do
main(5.4.0 release) intodev: bump files, Pitloom 0.20.2, ONNX metadata tool, release docsCHANGELOG.md:[5.4.0]matchesmain;dev-only entries move to[Unreleased]devversion to6.0.0-dev0; README version row stays at 5.4.0What was wrong
How this fixes it
Fixes #...
Your checklist for this pull request