OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Pythainlp

PyThaiNLP is a Python library for Thai linguistic analysis. It provides text segmentation tools, including sentence, word and subword segmentation, and documents optional dependency groups for capabilities such as translation and WordNet support.

Independent OpenViST project profile, based on linked sources.

Pythainlp — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use PyThaiNLP when a Python workflow needs Thai linguistic analysis, especially sentence, word or subword segmentation, or when its documented optional dependency groups match the project’s needs.

Who it is for

  • Python developers processing Thai-language text.
  • Researchers and teams preparing Thai text for downstream NLP workflows.

Documented uses

  • Segment Thai text into sentences, words or subwords.
  • Install additional documented dependency groups for translation or WordNet support.
  • Control where PyThaiNLP stores data and whether automatic corpus downloads are disabled.
Before you choose

Requirements & limits

The README documents installation through pip. It identifies the library license as Apache-2.0 and the data and models as CC0-1.0 and CC-BY-4.0.

  • The compact extra is described as a stable, small subset of dependencies.
  • The full extra includes all optional dependencies and may introduce conflicts.
  • Data downloads default to ~/pythainlp-data; PYTHAINLP_DATA can change the directory.
  • PYTHAINLP_OFFLINE=1 disables automatic corpus downloads, but explicit download calls still work.
  • The code and associated data/models have distinct license terms.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install PyThaiNLP with selected extras

Install the library with a chosen set of optional dependencies.

Before you start

  • Python environment with pip

Steps

  1. For the base installation, run the command below.

    Documented command
    pip install pythainlp
  2. To include optional features, use the documented form the command below, replacing the placeholders with selected extras such as compact, translate or wordnet.

    Documented command
    pip install "pythainlp[extra1,extra2,...]"

Expected outcome

PyThaiNLP is installed with the base package or the selected optional dependency groups.

Guide limitations

  • The full extra installs all optional dependencies and may introduce conflicts.
  • The README directs users to the installation documentation for the complete list of extras.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 October 2026
Original website title
GitHub - PyThaiNLP/pythainlp: Thai natural language processing in Python · GitHub · Official homepage title · retained in its source language