lute3-thai
A Thai parser for Lute (lute3) using the pythainlp library.
Installation
See the Lute manual.
Usage
When this parser is installed, you can add "Thai" as a language to Lute, which comes with a simple story.
Notes
Thai is tough to parse! In particular, it is sometimes hard to know where sentences are split.
Some sentence splitting characters are specified in the Thai language definition, which you can edit.
This parser also assumes that spaces are used as sentence delimiters.
In many cases, this is a reasonable assumption (e.g. see the stories at Thai Reader), but in sometimes this can be incorrect. For example, numbers and English words are often written with spaces surrounding them, as in this single sentence from a news story:
ออกคำสั่งในวันเสาร์ที่ 2 พ.ย. 2567 ให้ทหาร 5,000 นาย กับ ตำรวจและเจ้าหน้าที่กองกำลังป้องกันพลเรือนอีก 5,000 นาย ไปเสริมกำลังเจ้าหน้าที่ในแคว้นบาเลนเซีย .
Hopefully in the future some smart codes will be able to improve the parsing to handle such situations ... but for now, Lute can give you some support for reading in Thai.
Metadata
Release files for lute3-thai 0.0.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 | |
|---|---|---|---|---|
| lute3_thai-0.0.3.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lute3_thai-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / lute3_thai-0.0.3.tar.gz
| Download URL | lute3_thai-0.0.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92edf2fa2b1e51d336614e565f6ca6c70b23045e5f55c0765f110fb60c83e6e1
|
|
BLAKE2b-256 checksum How to use checksums |
4b300c399166be7327a497342d744e68d299cc0b6af0e3daca9ed964d1d8fbfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / lute3_thai-0.0.3-py3-none-any.whl
| Download URL | lute3_thai-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5f4dd8fec1187e55675e179b1723ee4206144451765402cd84b8cae5524eaf6
|
|
BLAKE2b-256 checksum How to use checksums |
937533475b35afad5491b101a3e7ca1c3fb998d0c9ce711f82c0f56410ac5623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for lute3-thai 0.0.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.