Chinese IME ciku (aka cell wordlist file) parsing tool
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
IME-Utils
中文输入法词库文件(细胞词库)解析工具。
Chinese IME ciku (aka cell wordlist file) parsing tool.
支持:
- 搜狗拼音(
.scel) - 百度拼音(
.bdict)、百度输入法手机版(.bcd) - QQ 拼音(
.qcel)、QQ 拼音旧版(6.0 以下词库,.qpyd) - 华宇拼音(紫光输入法)(
.uwl)
使用
- 程序调用:
# 安装
# pip install ime-utils
# uv pip install . # 本地
# 用例:
from ime_utils.parser import SogouParser, BaiduParser
parser = BaiduParser()
files = [
"医学词汇.bdict",
"电影明星.bdict",
"体操基本术语.bdict",
]
for file in files[:]:
save_file = f"out-{file}.txt"
if parser.parse(file):
parser.save_data(save_file, keep_error=False)
- 命令行调用
# 或者 python -m ime_utils -f file-names -o output
# 指定多个文件
ime-utils -f file-name1,file-name2 -o output
# 指定目录,保留解析异常词语
ime-utils -d file-dir -o text --keep-error
相关
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
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 ime_utils-0.2.1.tar.gz.
File metadata
- Download URL: ime_utils-0.2.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8113c4ce4d9be9800e4ecbde6151904dce0a8f1fe3ba45249898b609388bd51c
|
|
| MD5 |
06fa034d6bd4db3984738bb04243d759
|
|
| BLAKE2b-256 |
f6f55f759ea6828b9403880ab702a95fe462b7c9ecd018c740442c991a99a827
|
Provenance
The following attestation bundles were made for ime_utils-0.2.1.tar.gz:
Publisher:
python-publish.yml on hantang/ime-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ime_utils-0.2.1.tar.gz -
Subject digest:
8113c4ce4d9be9800e4ecbde6151904dce0a8f1fe3ba45249898b609388bd51c - Sigstore transparency entry: 469849963
- Sigstore integration time:
-
Permalink:
hantang/ime-utils@b5322f2d952122325b13d415d171ed4c1d129960 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/hantang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b5322f2d952122325b13d415d171ed4c1d129960 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ime_utils-0.2.1-py3-none-any.whl.
File metadata
- Download URL: ime_utils-0.2.1-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a4a9a091d5de3b24c1b667c65079397d4b63b9c2d37c3659db9b65990a44c28
|
|
| MD5 |
a98e843454947481e058368033032e2f
|
|
| BLAKE2b-256 |
abf69625f1f3d3e4f0c946d74a8c878a0d2d012d8bb1976f7242316ea75ff731
|
Provenance
The following attestation bundles were made for ime_utils-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on hantang/ime-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ime_utils-0.2.1-py3-none-any.whl -
Subject digest:
0a4a9a091d5de3b24c1b667c65079397d4b63b9c2d37c3659db9b65990a44c28 - Sigstore transparency entry: 469849979
- Sigstore integration time:
-
Permalink:
hantang/ime-utils@b5322f2d952122325b13d415d171ed4c1d129960 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/hantang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b5322f2d952122325b13d415d171ed4c1d129960 -
Trigger Event:
push
-
Statement type: