拼音解析器
Project description
非常神必的拼音解析器。
能做什么?
- 解析拼音,尤其适用于UGC,或者任何你对输入是一坨怎样的东西完全没信心的时候。
-
- 如果你的输入已经非常整洁标准,那或许有其他更快的解析库适合你。
- 检验一个拼音是不是存在。
- 查拼音,尤其是查谐音/双声叠韵 etc.
- 把拼音解析成按音位的声韵调格式,便于存储与查询。
-
- 每个音节仅占用2B/14b(理论最小值2B/11b)。
- 也可以转换拼音的格式/风格(例如
guang1gua1ngguāng)。 -
- 但这不是主要功能。如果你的主要需求是这个,那你应该去看kittell的同名库或是pypinyin。
- 拼音规范化/格式化。
- 或者其他任何需要对 “拼音”本身 进行处理的场合。
不能做什么?
- 从汉字解析出来拼音。
-
- 如果你的需求是汉字加拼音,那你应该去看pypinyin。
- 模糊解析。
- 所见即所得的解析。
-
- 本解析器使用的是音位表示,解析结果很可能会与你想象的不同。
-
- 如果你需要所见即所得,那么你应当自己处理转换,将音节转换为更“符合直觉”的表示。
怎么使用?
你应当询问AI。我的语言能力并不足以支持我进行非常详细的表述。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinyinparser-1.1.1.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pinyinparser-1.1.1.tar.gz.
File metadata
- Download URL: pinyinparser-1.1.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00f077f2d3d294af27f8dbf794e43870afca63f37a724fe0cb103b4d2821f7b
|
|
| MD5 |
32e20153e5e391d3cc39d88b419dfcb9
|
|
| BLAKE2b-256 |
e1cce6e14bfeb63a2a188464765d73a1eb167af4b6be65e5ceadd095595225e9
|
File details
Details for the file pinyinparser-1.1.1-py3-none-any.whl.
File metadata
- Download URL: pinyinparser-1.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b04b2d7441eafdfedab758b4f8d73e6d0871fc5508ac18e4a919e9627fb9f8b7
|
|
| MD5 |
d94ffbf270a2e7c72750616150a8657e
|
|
| BLAKE2b-256 |
968d59a79e1497824a90a3869b04ad6157572dda8da935f1360221262a0bb4e3
|