中文「四角号码」数据与工具
四角号码,汉语词典常用检字方法之一,用最多5个阿拉伯数字来对汉字进行归类。
四角号码最重要的特点之一是字形相似的字具有相同或者相似的编码。比如 门(37001)和 闫(37101)字形相似,编码也接近。
这种特性可以被深度学习模型用来作为字的特征之一:字形的特征。
安装
pip install four_corner_method
使用
from four_corner_method import FourCornerMethod
fcm = FourCornerMethod()
print(fcm.query('民')) # 77747
print(fcm.query('名')) # 27602
开发
参见 DEVELOP.md
致谢
四角号码数据来自于 wangyanhan @ 资料共享——最全的《四角号码检字表》chm
Metadata
Release files for four_corner_method 0.2.0
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 | Actions |
|---|---|---|---|---|
| four_corner_method-0.2.0.tar.gz | 498.1 kB | Without provenance | Details for four_corner_method-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| four_corner_method-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for four_corner_method-0.2.0-py3-none-any.whl |
Total release size: 996.1 kB
Release files / four_corner_method-0.2.0.tar.gz
| Download URL | four_corner_method-0.2.0.tar.gz |
|---|---|
| Size | 498.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67fb9cf3135eae9c95e2b42e76b78b14bf188460e77df7095d9090ebfe484c9c
|
|
BLAKE2b-256 checksum How to use checksums |
8884b6c69890fb0f01918e827cf919889c1342dede415463d1be27f87e4dcf1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / four_corner_method-0.2.0-py3-none-any.whl
| Download URL | four_corner_method-0.2.0-py3-none-any.whl |
|---|---|
| Size | 498.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e4b641ab51988a72ed88b9b26068c0fa0ab43b8a1fef6ab0253114ba01b255e
|
|
BLAKE2b-256 checksum How to use checksums |
5986a114e13054d72d0a5d388133bd56efd66c0b3c21902759d819b6d9ce6a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for four_corner_method 0.2.0
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.