---
title: "pythainlp 5.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each pythainlp release removed, renamed or changed: 90 breaking changes in 7 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pythainlp
last_updated: 2026-12-04
---

# 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

Latest version `5.4.0`, released October 9, 2026. 

Its 3.0.0 release drops Python 3.6. [Python end of life dates](https://since.dev/calendar/python.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 45 breaking changes in 1 version.
- From [3.0.0](#v-3-0-0) to [5.0.0](#v-5-0-0): 74 breaking changes in 3 versions.

## pythainlp 5.0.0 breaking changes

pythainlp 5.0.0, released February 10, 2024: 45 breaking changes.

- **Removed** `pythainlp.cli.data.cli`  

pythainlp.cli.data.cli was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Removed** `pythainlp.cli.soundex.cli`  

pythainlp.cli.soundex.cli was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Removed** `pythainlp.cli.tag.locations`  

pythainlp.cli.tag.locations was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Removed** `pythainlp.cli.tag.named_entity`  

pythainlp.cli.tag.named_entity was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Removed** `pythainlp.cli.tokenize.DEFAULT_SYLLABLE_TOKENIZE_ENGINE`  

pythainlp.cli.tokenize.DEFAULT_SYLLABLE_TOKENIZE_ENGINE was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Removed** `pythainlp.spell.symspellpy.word_tokenize`  

pythainlp.spell.symspellpy.word_tokenize was removed in pythainlp 5.0.0 [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v5.0.0)
- **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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v5.0.0)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **Signature changed** `pythainlp.corpus.util.Trie`  

Was class Trie; now class Trie(Iterable\[str\]). [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **Signature changed** `pythainlp.tokenize.Trie`  

Was class Trie; now class Trie(Iterable\[str\]). [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **Signature changed** `pythainlp.tokenize.Trie.__iter__`  

Was def \_\_iter\_\_(self) -> Iterable\[str\]; now def \_\_iter\_\_(self) -> Iterator\[str\]. [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **Signature changed** `pythainlp.util.Trie`  

Was class Trie; now class Trie(Iterable\[str\]). [pypi.org](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)
- **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](https://pypi.org/project/pythainlp/5.0.0/)

## pythainlp 4.0.0 breaking changes

pythainlp 4.0.0, released April 14, 2023: 26 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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v4.0.0)
- **Removed** `pythainlp.tag.lst20`  

pythainlp.tag.lst20 was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.lst20_ner_onnx`  

pythainlp.tag.lst20_ner_onnx was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.named_entity.deprecation_message`  

pythainlp.tag.named_entity.deprecation_message was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.perceptron.deprecation_message`  

pythainlp.tag.perceptron.deprecation_message was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.perceptron.lst20`  

pythainlp.tag.perceptron.lst20 was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.pos_tag.deprecation_message`  

pythainlp.tag.pos_tag.deprecation_message was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.unigram.deprecation_message`  

pythainlp.tag.unigram.deprecation_message was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.tag.unigram.lst20`  

pythainlp.tag.unigram.lst20 was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)
- **Removed** `pythainlp.util.messages`  

pythainlp.util.messages was removed in pythainlp 4.0.0 [pypi.org](https://pypi.org/project/pythainlp/4.0.0/)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pythainlp 4.0.0b1 breaking changes

pythainlp 4.0.0b1, released April 14, 2023: 3 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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v4.0.0-beta1)
- **Renamed** `pythainlp.tools.misspell`  

The misspell function moved to a new path. Update imports to pythainlp.tools.misspell.misspell. [github.com](https://github.com/PyThaiNLP/pythainlp/releases/tag/v4.0.0-beta1)
- **Behavior changed**  

The TCC rule for newmm was changed, which can alter tokenization output for existing code. [github.com](https://github.com/PyThaiNLP/pythainlp/releases/tag/v4.0.0-beta1)

## pythainlp 3.0.0 breaking changes

pythainlp 3.0.0, released January 29, 2022: 12 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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v3.0.0)
- **Removed** `pythainlp.translate.core.get_corpus_path`  

pythainlp.translate.core.get_corpus_path was removed in pythainlp 3.0.0 [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **Removed** `pythainlp.translate.core.get_pythainlp_data_path`  

pythainlp.translate.core.get_pythainlp_data_path was removed in pythainlp 3.0.0 [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **Removed** `pythainlp.translate.download_model_all`  

pythainlp.translate.download_model_all was removed in pythainlp 3.0.0 [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **Removed** `pythainlp.translate.EnThTranslator`  

pythainlp.translate.EnThTranslator was removed in pythainlp 3.0.0 [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **Removed** `pythainlp.translate.ThEnTranslator`  

pythainlp.translate.ThEnTranslator was removed in pythainlp 3.0.0 [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v3.0.0)
- **Renamed** `pythainlp.translate.core.download`  

Use pythainlp.translate.en_th.download instead. [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **Renamed** `pythainlp.translate.core.get_full_data_path`  

Use pythainlp.translate.en_th.get_full_data_path instead. [pypi.org](https://pypi.org/project/pythainlp/3.0.0/)
- **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](https://pypi.org/project/pythainlp/3.0.0/)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pythainlp 3.0.0b0 breaking changes

pythainlp 3.0.0b0, released January 29, 2022: 2 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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v3.0.0-beta0)
- **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](https://github.com/PyThaiNLP/pythainlp/releases/tag/v3.0.0-beta0)

## pythainlp 3.0.0.dev0 breaking changes

pythainlp 3.0.0.dev0, released January 29, 2022: 1 breaking change.

- **Renamed** `pythainlp.tag.named_entity.ThaiNameTagger`  

The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger. [github.com](https://github.com/PyThaiNLP/pythainlp/releases/tag/v3.0.0-dev0)

## Older versions

1 older version.

### pythainlp 2.4.0.dev0 breaking changes

pythainlp 2.4.0.dev0, released January 29, 2022: 1 breaking change.

- **Renamed** `pythainlp.tag.named_entity.ThaiNameTagger`  

The old import path pythainlp.tag.named_entity.ThaiNameTagger changes to pythainlp.tag.thainer.ThaiNameTagger. [github.com](https://github.com/PyThaiNLP/pythainlp/releases/tag/v2.4.0-dev0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
