Skip to content

Installation

From PyPI

pip install burmesenlp

Requires Python 3.9+. Runtime depends only on PyYAML (phrase grammar).

Optional: engine="xlmr" POS tagger

pip install "burmesenlp[xlmr]"

Pulls in transformers/torch for the XLM-RoBERTa POS engine (see POS tagging). Not required for the default engine="rule" pipeline.

From source (development)

git clone https://github.com/aungthuhein2005/burmesenlp.git
cd burmesenlp
pip install -e ".[dev]"

Docs extras

To build this site locally:

pip install -e ".[docs]"
mkdocs serve

Then open http://127.0.0.1:8000.

Verify

import burmesenlp
print(burmesenlp.__version__)