======
Some basic python functions for working with the Thai language. For example:
```python
import pythai
pythai.split(u"การที่ได้ต้องแสดงว่างานดี")
>>> u"การ ที่ ได้ ต้อง แสดง ว่า งาน ดี"
pythai.word_count(u"การที่ได้ต้องแสดงว่างานดี")
>>> 8
pythai.contains_thai(u"hello")
>>> False
pythai.contains_thai(u"helloการที่ไ")
>>> True
```
It's meant to be fast and efficient enough to handle large documents without breaking a sweat.
Includes
------------
Currently the library supports these functions:
- Word segmentation (`split`)
- Word count (`word_count`) (faster than counting the result of `split`)
- Whether a string contains Thai or not (`contains_thai`)
Installation
------------
PyThai equires `thailib` to work. You can install it quite easily:
sudo apt-get install thailib
And then you can simply install `pythai` through **pip**:
pip install pythai
More
------------
Special thanks to Vee Satayamas for the original python bindings of libthai from C.
This library was written for use in [Gengo](http://www.gengo.com). It's free and open-source under the GNU lesser public license. Any contributions are welcome!
Metadata
Release files for pythai 0.1.3
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 | |
|---|---|---|---|---|
| pythai-0.1.3.tar.gz | 13.6 kB | Without provenance | Details |
Release files / pythai-0.1.3.tar.gz
| Download URL | pythai-0.1.3.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5694a793b4295287894bf83b1ceebe8cd137ca53087ce8bf47f02543a46d2911
|
|
BLAKE2b-256 checksum How to use checksums |
f561416585a79955e3f6a61a72ea3c2ef6dc98f2d4e5549740a9d0b3c4abe791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pythai 0.1.3
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.