PyThaiNLP
PyThaiNLP is a Python library for natural language processing (NLP) of Thai language.
PyThaiNLP includes Thai word tokenizers, transliterators, soundex converters, part-of-speech taggers, and spell checkers.
📫 follow us on Facebook PyThaiNLP
What's new in 2.0 ?
- Terminate Python 2 support. Remove all Python 2 compatibility code.
- Improved
word_tokenize("newmm" and "mm" engine) anddict_word_tokenize - Improved Part-Of-Speech tagging
- New
NorvigSpellCheckerspell checker class, which can be initialized with custom dictionary. - New
thai2fit(replacingthai2vec, upgrade ULMFiT-related code to fastai 1.0) - Updated ThaiNER to 1.0
- You may need to update your existing ThaiNER models from PyThaiNLP 1.7
- Remove old, obsolated, deprecated, duplicated, and experimental code.
- Sentiment analysis is no longer part of the library, but rather a text classification example.
- See more examples in Get Started notebook
- Full change log
- Upgrading from 1.7
Install
For stable version:
pip install pythainlp
For some advanced functionalities, like word vector, extra packages may be needed. Install them with these options during pip install:
pip install pythainlp[extra1,extra2,...]
where extras can be
artagger(to support artagger part-of-speech tagger)*deepcut(to support deepcut machine-learnt tokenizer)icu(for ICU support in transliteration and tokenization)ipa(for International Phonetic Alphabet support in transliteration)ml(to support fastai 1.0.22 ULMFiT models)ner(for named-entity recognizer)thai2fit(for Thai word vector)thai2rom(for machine-learnt romanization)full(install everything)
Note for Windows: marisa-trie wheels can be obtained from https://www.lfd.uci.edu/~gohlke/pythonlibs/#marisa-trie
Install it with pip, for example: pip install marisa_trie‑0.7.5‑cp36‑cp36m‑win32.whl
Links
- User guide: English, ภาษาไทย
- Docs: https://thainlp.org/pythainlp/docs/2.0/
- GitHub: https://github.com/PyThaiNLP/pythainlp
- Issues: https://github.com/PyThaiNLP/pythainlp/issues
- Facebook: PyThaiNLP
Metadata
Release files for pythainlp 2.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pythainlp-2.0.4.tar.gz | 55.0 kB | Without provenance | Details for pythainlp-2.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pythainlp-2.0.4-py3-none-any.whl | Python 3 | none | any | Details for pythainlp-2.0.4-py3-none-any.whl |
Total release size: 11.2 MB
Release files / pythainlp-2.0.4.tar.gz
| Download URL | pythainlp-2.0.4.tar.gz |
|---|---|
| Size | 55.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2234f82deb385e96bdb71bd81d0e35cf056d28408b2e3508ea756302ffcfe8a9
|
|
BLAKE2b-256 checksum How to use checksums |
f10330e82c07002abcfecdf3495bd5b16b98ce10e3ab013b1d5647def050445b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Release files / pythainlp-2.0.4-py3-none-any.whl
| Download URL | pythainlp-2.0.4-py3-none-any.whl |
|---|---|
| Size | 11.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28d70236a67975c1ce6c259762bca038a6fb4d86d9b96c42718bd5fbebc39bc1
|
|
BLAKE2b-256 checksum How to use checksums |
345b8e6981607ee4a24d3ba178e988feba2f361299778da201e2fe916a6ca31e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.3
|
Security for pythainlp 2.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.