char_featurizer
char_featurizer 是一个汉字字符特征提取工具,他可以提取汉字的字音(包括声母、韵母、声调)、字形(偏旁、部首)、四角符号等信息。 同时可以将这些特征信息转换为tensor,作为模型的输入特征。这个项目是在安德森大佬的 字符提取工具 的基础上做了优化整合
目前 char_featurizer 支持的功能有:
1、字形特征提取
2、字音特征提取
3、四角编码提取
4、tensor转换
二、安装使用
1、安装
pip install char_featurizer
2、使用
1、字符特征提取
from char_featurizer import Featurizer
featurizer = Featurizer()
data = '明天去你家玩'
result = featurizer.featurize(data)
print(result)
2、作为特征输入模型
3、相关资源
三、Update News
2020.5.4 完成V1版本
四、Resources
Metadata
Release files for char-featurizer 1.0.0
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 | Reset |
|---|---|---|---|---|
| char_featurizer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / char_featurizer-1.0.0-py3-none-any.whl
| Download URL | char_featurizer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 978.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a973271cd1270998b01928a99e0c1d10dca030d4fcf3635da6f5114d0ff4be7
|
|
BLAKE2b-256 checksum How to use checksums |
9a8727a3e0e89b719c525189d610a983216e381490769a8b24877cdaa09ce6bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for char-featurizer 1.0.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.