This package provides a simple tool for preprocessing Vietnamese text. It includes the following functions:
get_consonants(): Returns a list of all Vietnamese consonants.
get_vowels(): Returns a list of all Vietnamese vowels.
get_rhymes(): Returns a list of all Vietnamese rhymes.
normalize(input_str): Converts the input string from various Vietnamese encodings to Unicode.
Installing
You can install the package using pip:
$ pip install vietnamese
Usage
Here's an example of how to use the package:
import vietnamese
consonants = vietnamese.get_consonants()
vowels = vietnamese.get_vowels()
rhymes = vietnamese.get_rhymes()
input_str = "Xin chµo, ®©y lµ mét dßng ch÷ bÞ lçi font"
normalized_str = vietnamese.normalize(input_str)
print("Consonants:", consonants)
print("Vowels:", vowels)
print("Rhymes:", rhymes)
print("Input string:", input_str)
print("Normalized string:", normalized_str)
Contributing
If you find a bug or have a suggestion for a new feature, please open an issue on GitHub or submit a pull request.
Metadata
Release files for vietnamese 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vietnamese-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for vietnamese-0.0.8-py3-none-any.whl |
Release files / vietnamese-0.0.8-py3-none-any.whl
| Download URL | vietnamese-0.0.8-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c411151de71b83aba988d643489ac9300089f3ecc48cc791db16dfcb2a7cfeb
|
|
BLAKE2b-256 checksum How to use checksums |
1793973bfdafc40d21cbdef6fdb414555d1e7c1cdf32d4fce2193c7ff56672ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for vietnamese 0.0.8
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.