lute3-mandarin
A Mandarin parser for Lute (lute3) using the jieba library, and
pypinyin for readings.
Installation
See the Lute manual.
Usage
When this parser is installed, you can add "Mandarin Chinese" as a language to Lute, which comes with a simple story.
Parsing exceptions
Sometimes jieba groups too many characters together when parsing.
For example, it returns "清华大学" as a single word of four
characters, which might not be correct.
You can specify how Lute should correct these cases by adding some
simple "rules" to the file
plugins/lute_mandarin/parser_exceptions.txt found in your Lute
data directory. This file is automatically created when Lute
starts. Each rule contains the characters of the word as parsed by
jieba, with regular commas added where the word should be split.
Some examples:
| File content | Results when parsing "清华大学" |
|---|---|
| (empty file) | "清华大学" |
|
Two tokens, "清华" and "大学" (the single token is split in two) |
|
Four tokens, "清", "华", "大", "学" |
|
Three tokens, "清华", "大, "学" (results are recursively broken down if rules are found) |
Metadata
Release files for lute3-mandarin 0.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 | |
|---|---|---|---|---|
| lute3_mandarin-0.0.4.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lute3_mandarin-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / lute3_mandarin-0.0.4.tar.gz
| Download URL | lute3_mandarin-0.0.4.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a922b4d4626aea47f56eab16fbb719c35dd9ca2a498f93b1c75d7e9591fe0f7
|
|
BLAKE2b-256 checksum How to use checksums |
0b2e1651825ecc2ab97351466453200eefcab77252acd25779f194c314fb93b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.33.1
|
Release files / lute3_mandarin-0.0.4-py3-none-any.whl
| Download URL | lute3_mandarin-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40c4a1d33b56b17d1c47fdbc56ce2f734ac4b89a374d69a8ff404964368fe73d
|
|
BLAKE2b-256 checksum How to use checksums |
d60ce066fe84e110bc82d5ff040bf912b5a54cda277736e87f80ac3656e0c03a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.33.1
|
Security for lute3-mandarin 0.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.