# PyThaiNLP: Thai Natural Language Processing in Python

arXiv: https://arxiv.org/abs/2312.04649 · HTML: https://mlsanity.com/paper/2312.04649/

## Key facts

- Cited by 28 papers in the map (data through 14 Oct 2026).
- Builds on 12 of its 64 references that are in the map.
- First posted on arXiv 7 Dec 2023.

## Builds on (most cited first, 12 of 12)

- [Unsupervised Cross-lingual Representation Learning at Scale](https://mlsanity.com/paper/1911.02116/) (2019)
- [Common Voice: A Massively-Multilingual Speech Corpus](https://mlsanity.com/paper/1912.06670/) (2019)
- [Cross-lingual Language Model Pretraining](https://mlsanity.com/paper/1901.07291/) (2019)
- [Few-shot Learning with Multilingual Language Models](https://mlsanity.com/paper/2112.10668/) (2021)
- [fastai: A Layered API for Deep Learning](https://mlsanity.com/paper/2002.04688/) (2020)
- [Top2Vec: Distributed Representations of Topics](https://mlsanity.com/paper/2008.09470/) (2020)
- [POLYGLOT-NER: Massive Multilingual Named Entity Recognition](https://mlsanity.com/paper/1410.3791/) (2014)
- [WangchanBERTa: Pretraining transformer-based Thai Language Models](https://mlsanity.com/paper/2101.09635/) (2021)
- [82 Treebanks, 34 Models: Universal Dependency Parsing with Multi-Treebank Models](https://mlsanity.com/paper/1809.02237/) (2018)
- [scb-mt-en-th-2020: A Large English-Thai Parallel Corpus](https://mlsanity.com/paper/2007.03541/) (2020)
- [Multilingual End to End Entity Linking](https://mlsanity.com/paper/2306.08896/) (2023)
- [The Annotation Guideline of LST20 Corpus](https://mlsanity.com/paper/2008.05055/) (2020)

## Built on by (most cited first, 28 of 28)

- [SEACrowd: A Multilingual Multimodal Data Hub and Benchmark Suite for Southeast Asian Languages](https://mlsanity.com/paper/2406.10118/) (2024)
- [Confounding Factors in Relating Model Performance to Morphology](https://mlsanity.com/paper/2511.01380/) (2025)
- [Language Complexity and Speech Recognition Accuracy: Orthographic Complexity Hurts, Phonological Complexity Doesn't](https://mlsanity.com/paper/2406.09202/) (2024)
- [Language Surgery in Multilingual Large Language Models](https://mlsanity.com/paper/2506.12450/) (2025)
- [X-Voice: Enabling Everyone to Speak 30 Languages via Zero-Shot Cross-Lingual Voice Cloning](https://mlsanity.com/paper/2605.05611/) (2026)
- [Montreal Forced Aligner and the state of speech-to-text alignment in 2026](https://mlsanity.com/paper/2606.18466/) (2026)
- [MrRank: Improving Question Answering Retrieval System through Multi-Result Ranking Model](https://mlsanity.com/paper/2406.05733/) (2024)
- [Representing the Under-Represented: Cultural and Core Capability Benchmarks for Developing Thai Large Language Models](https://mlsanity.com/paper/2410.04795/) (2024)
- [On Creating an English-Thai Code-switched Machine Translation in Medical Domain](https://mlsanity.com/paper/2410.16221/) (2024)
- [Mangosteen: An Open Thai Corpus for Language Model Pretraining](https://mlsanity.com/paper/2507.14664/) (2025)
- [SEA-BED: How Do Embedding Models Represent Southeast Asian Languages?](https://mlsanity.com/paper/2508.12243/) (2025)
- [AyutthayaAlpha: A Thai-Latin Script Transliteration Transformer](https://mlsanity.com/paper/2412.03877/) (2024)
- [LOTUSDIS: A Thai far-field meeting corpus for robust conversational ASR](https://mlsanity.com/paper/2509.18722/) (2025)
- [Developing an Open Conversational Speech Corpus for the Isan Language](https://mlsanity.com/paper/2511.21229/) (2025)
- [Typhoon OCR: Open Vision-Language Model For Thai Document Extraction](https://mlsanity.com/paper/2601.14722/) (2026)
- [TurkicNLP: An NLP Toolkit for Turkic Languages](https://mlsanity.com/paper/2602.19174/) (2026)
- [Building and Evaluating Fixed-Voice Thai TTS from Synthetic Speech](https://mlsanity.com/paper/2609.03502/) (2026)
- [WangchanLion and WangchanX MRC Eval](https://mlsanity.com/paper/2403.16127/) (2024)
- [Thai Universal Dependency Treebank](https://mlsanity.com/paper/2405.07586/) (2024)
- [ThaiCoref: Thai Coreference Resolution Dataset](https://mlsanity.com/paper/2406.06000/) (2024)
- [Xmodel-1.5: An 1B-scale Multilingual LLM](https://mlsanity.com/paper/2411.10083/) (2024)
- [Headline-Guided Extractive Summarization for Thai News Articles](https://mlsanity.com/paper/2412.01624/) (2024)
- [Empowering Global Voices: A Data-Efficient, Phoneme-Tone Adaptive Approach to High-Fidelity Speech Synthesis](https://mlsanity.com/paper/2504.07858/) (2025)
- [OasisSimp: An Open-source Asian-English Sentence Simplification Dataset](https://mlsanity.com/paper/2603.14111/) (2026)
- [Bridging the Stability-Expressivity Gap: Synthetic Data Scaling and Preference Alignment for Low-Resource Spoken Language Models](https://mlsanity.com/paper/2605.27383/) (2026)
- [FastThaiG2P: Lightning-fast Thai Grapheme-to-phoneme Conversion for Voice Agent Pipelines](https://mlsanity.com/paper/2608.12814/) (2026)
- [ThaiTrees: Thai Syntactic Dependency Trees Across Domains](https://mlsanity.com/paper/2609.27558/) (2026)
- [Single-Sample Decoding of a Two-Layer Sound-Word Canvas Model for Thai Klon Pad](https://mlsanity.com/paper/2610.14980/) (2026)

## Abstract (arXiv)

We present PyThaiNLP, a free and open-source natural language processing (NLP) library for Thai language implemented in Python. It provides a wide range of software, models, and datasets for Thai language. We first provide a brief historical context of tools for Thai language prior to the development of PyThaiNLP. We then outline the functionalities it provided as well as datasets and pre-trained language models. We later summarize its development milestones and discuss our experience during its development. We conclude by demonstrating how industrial and research communities utilize PyThaiNLP in their work. The library is freely available at https://github.com/pythainlp/pythainlp.
