pythainlp breaking changes
pythainlp 5.0.0 (February 10, 2024) is its newest release with breaking changes, 45 of them. The first: Removed pythainlp.cli.data.cli. Every breaking API change we have recorded in pythainlp on PyPI: 90 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.4.0, released October 9, 2026.
Its 3.0.0 release drops Python 3.6. Python end of life dates.
- From 4.0.0 to 5.0.0: 45 breaking changes in 1 version.
- From 3.0.0 to 5.0.0: 74 breaking changes in 3 versions.
pythainlp 5.0.0 breaking changes
- Removed
pythainlp.cli.data.cli
pythainlp.cli.data.cli was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.cli.soundex.cli
pythainlp.cli.soundex.cli was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.cli.tag.locations
pythainlp.cli.tag.locations was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.cli.tag.named_entity
pythainlp.cli.tag.named_entity was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.cli.tokenize.DEFAULT_SYLLABLE_TOKENIZE_ENGINE
pythainlp.cli.tokenize.DEFAULT_SYLLABLE_TOKENIZE_ENGINE was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.spell.symspellpy.word_tokenize
pythainlp.spell.symspellpy.word_tokenize was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.translate.en_th.get_full_data_path
pythainlp.translate.en_th.get_full_data_path was removed in pythainlp 5.0.0 pypi.org - Removed
pythainlp.translate.en_th.get_pythainlp_data_path
pythainlp.translate.en_th.get_pythainlp_data_path was removed in pythainlp 5.0.0 pypi.org - Renamed
pythainlp.util.is_native_thai
pythainlp.util.is_native_thai was moved to pythainlp.morpheme.is_native_thai. Update imports to the new path. github.com - Default changed
The default named entity recognition model is now thainer-v2. Code that relied on the previous default should select the old engine explicitly. github.com - Signature changed
pythainlp.augment.word2vec.ltw2v.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.augment.word2vec.thai2fit.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.corpus.download
Was def download(name: str, force: bool = False, url: str = None, version: str = None) -> bool; now def download(name: str, force: bool = False, url: str = '', version: str = '') -> bool. pypi.org - Signature changed
pythainlp.corpus.get_corpus
Was def get_corpus(filename: str, as_is: bool = False) -> Union[frozenset, list]; now def get_corpus(filename: str, comments: bool = True) -> frozenset. pypi.org - Signature changed
pythainlp.corpus.get_corpus_db_detail
Was def get_corpus_db_detail(name: str, version: str = None) -> dict; now def get_corpus_db_detail(name: str, version: str = '') -> dict. pypi.org - Signature changed
pythainlp.corpus.get_corpus_default_db
Was def get_corpus_default_db(name: str, version: str = None) -> Union[str, None]; now def get_corpus_default_db(name: str, version: str = '') -> Union[str, None]. pypi.org - Signature changed
pythainlp.corpus.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.corpus.provinces
Was def provinces(details: bool = False) -> Union[FrozenSet[str], List[str]]; now def provinces(details: bool = False) -> Union[FrozenSet[str], List[dict]]. pypi.org - Signature changed
pythainlp.corpus.util.Trie
Was class Trie; now class Trie(Iterable[str]). pypi.org - Signature changed
pythainlp.parse.dependency_parsing
Was def dependency_parsing(text: str, model: str = None, tag: str = 'str', engine: str = 'esupar') -> Union[List[List[str]], str]; now def dependency_parsing(text: str, model: Union[str, None] = None, tag: str = 'str', engine: str =... pypi.org - Signature changed
pythainlp.spell.symspellpy.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.tag.locations.provinces
Was def provinces(details: bool = False) -> Union[FrozenSet[str], List[str]]; now def provinces(details: bool = False) -> Union[FrozenSet[str], List[dict]]. pypi.org - Signature changed
pythainlp.tag.NER.__init__
Was def __init__(self, engine: str, corpus: str = 'thainer') -> None; now def __init__(self, engine: str = 'thainer-v2', corpus: str = 'thainer') -> None. pypi.org - Signature changed
pythainlp.tag.perceptron.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.tag.thai_nner.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.tag.unigram.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.tokenize.deepcut.segment
Was def segment(text: str, custom_dict: Union[Trie, List[str], str] = None) -> List[str]; now def segment(text: str, custom_dict: Union[Trie, List[str], str] = []) -> List[str]. pypi.org - Signature changed
pythainlp.tokenize.etcc.get_corpus
Was def get_corpus(filename: str, as_is: bool = False) -> Union[frozenset, list]; now def get_corpus(filename: str, comments: bool = True) -> frozenset. pypi.org - Signature changed
pythainlp.tokenize.Trie
Was class Trie; now class Trie(Iterable[str]). pypi.org - Signature changed
pythainlp.tokenize.Trie.__iter__
Was def __iter__(self) -> Iterable[str]; now def __iter__(self) -> Iterator[str]. pypi.org - Signature changed
pythainlp.tokenize.word_detokenize
Was def word_detokenize(segments: Union[List[List[str]], List[str]], output: str = 'str') -> Union[str, List[str]]; now def word_detokenize(segments: Union[List[List[str]], List[str]], output: str = 'str') -> Union[List[str], str]. pypi.org - Signature changed
pythainlp.Tokenizer.__init__
Was def __init__(self, custom_dict: Union[Trie, Iterable[str], str] = None, engine: str = 'newmm', keep_whitespace: bool = True, join_broken_num: bool = True); now def __init__(self, custom_dict: Union[Trie, Iterable[str], str] = []... pypi.org - Signature changed
pythainlp.translate.en_th.download
Was def download(name: str, force: bool = False, url: str = None, version: str = None) -> bool; now def download(name: str, force: bool = False, url: str = '', version: str = '') -> bool. pypi.org - Signature changed
pythainlp.translate.en_th.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.translate.Translate.__init__
Was def __init__(self, src_lang: str, target_lang: str, use_gpu: bool = False) -> None; now def __init__(self, src_lang: str, target_lang: str, engine: str = 'default', use_gpu: bool = False) -> None. pypi.org - Signature changed
pythainlp.translate.Translate.load_model
Was def load_model(self, src_lang: str, target_lang: str, use_gpu: bool); now def load_model(self). pypi.org - Signature changed
pythainlp.transliterate.thai2rom_onnx.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.transliterate.thai2rom.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.transliterate.thaig2p.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.transliterate.w2p.download
Was def download(name: str, force: bool = False, url: str = None, version: str = None) -> bool; now def download(name: str, force: bool = False, url: str = '', version: str = '') -> bool. pypi.org - Signature changed
pythainlp.transliterate.w2p.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.ulmfit.core.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org - Signature changed
pythainlp.util.Trie
Was class Trie; now class Trie(Iterable[str]). pypi.org - Signature changed
pythainlp.word_tokenize
Was def word_tokenize(text: str, custom_dict: Trie = None, engine: str = DEFAULT_WORD_TOKENIZE_ENGINE, keep_whitespace: bool = True, join_broken_num: bool = True) -> List[str]; now def word_tokenize(text: str, custom_dict: Trie = Trie([])... pypi.org - Signature changed
pythainlp.word_vector.core.get_corpus_path
Was def get_corpus_path(name: str, version: str = None, force: bool = False) -> Union[str, None]; now def get_corpus_path(name: str, version: str = '', force: bool = False) -> Union[str, None]. pypi.org
pythainlp 4.0.0 breaking changes
- Removed
The LST20 model files are removed from the package, so code that depends on them must switch to another model. github.com - Removed
pythainlp.tag.lst20
pythainlp.tag.lst20 was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.lst20_ner_onnx
pythainlp.tag.lst20_ner_onnx was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.named_entity.deprecation_message
pythainlp.tag.named_entity.deprecation_message was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.perceptron.deprecation_message
pythainlp.tag.perceptron.deprecation_message was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.perceptron.lst20
pythainlp.tag.perceptron.lst20 was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.pos_tag.deprecation_message
pythainlp.tag.pos_tag.deprecation_message was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.unigram.deprecation_message
pythainlp.tag.unigram.deprecation_message was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.tag.unigram.lst20
pythainlp.tag.unigram.lst20 was removed in pythainlp 4.0.0 pypi.org - Removed
pythainlp.util.messages
pythainlp.util.messages was removed in pythainlp 4.0.0 pypi.org
And 16 more in this version. Sign up to see every change
pythainlp 4.0.0b1 breaking changes
- Removed
The LST20 model files are removed from the package, so code that depends on them must switch to another model. github.com - Renamed
pythainlp.tools.misspell
The misspell function moved to a new path. Update imports to pythainlp.tools.misspell.misspell. github.com - Behavior changed
The TCC rule for newmm was changed, which can alter tokenization output for existing code. github.com
pythainlp 3.0.0 breaking changes
- Removed
Python 3.6 is no longer supported from 3.0; Python 3.6 users should stay on 2.3.2. github.com - Removed
pythainlp.translate.core.get_corpus_path
pythainlp.translate.core.get_corpus_path was removed in pythainlp 3.0.0 pypi.org - Removed
pythainlp.translate.core.get_pythainlp_data_path
pythainlp.translate.core.get_pythainlp_data_path was removed in pythainlp 3.0.0 pypi.org - Removed
pythainlp.translate.download_model_all
pythainlp.translate.download_model_all was removed in pythainlp 3.0.0 pypi.org - Removed
pythainlp.translate.EnThTranslator
pythainlp.translate.EnThTranslator was removed in pythainlp 3.0.0 pypi.org - Removed
pythainlp.translate.ThEnTranslator
pythainlp.translate.ThEnTranslator was removed in pythainlp 3.0.0 pypi.org - Renamed
pythainlp.tag.named_entity.ThaiNameTagger
The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger; the old class will be deprecated in 3.1. github.com - Renamed
pythainlp.translate.core.download
Use pythainlp.translate.en_th.download instead. pypi.org - Renamed
pythainlp.translate.core.get_full_data_path
Use pythainlp.translate.en_th.get_full_data_path instead. pypi.org - Signature changed
pythainlp.transliterate.thai2rom.AttentionDecoder.forward
Was def forward(self, input, last_hidden, encoder_outputs, mask); now def forward(self, input_character, last_hidden, encoder_outputs, mask). pypi.org
And 2 more in this version. Sign up to see every change
pythainlp 3.0.0b0 breaking changes
- Removed
pythainlp.tag.named_entity.ThaiNameTagger
Python 3.6 is no longer supported from 3.0; Python 3.6 users should stay on 2.3.2. github.com - Renamed
pythainlp.tag.named_entity.ThaiNameTagger
The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger; the old class will be deprecated in 3.1. github.com
pythainlp 3.0.0.dev0 breaking changes
- Renamed
pythainlp.tag.named_entity.ThaiNameTagger
The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger. github.com
Older versions
1 older version.
Show 1 older version
pythainlp 2.4.0.dev0 breaking changes
- Renamed
pythainlp.tag.named_entity.ThaiNameTagger
The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.