Skip to main content

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

GitHub stars GitHub release GitHub repo size GitHub license

中文输入法词库文件(细胞词库)解析工具。

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
# 指定目录,-e保留解析异常词语, -r 目录递归检索文件
ime-utils -d file-dir -o text -e -r

相关

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

ime_utils-0.2.3.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ime_utils-0.2.3-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file ime_utils-0.2.3.tar.gz.

File metadata

  • Download URL: ime_utils-0.2.3.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ime_utils-0.2.3.tar.gz
Algorithm Hash digest
SHA256 141cafadac90f8c5d1e90aacbbb0654cc152142bff0f37fb3a0006eb17bc2427
MD5 2fb7f5c423ed4f590d6ef0cdf7334b3b
BLAKE2b-256 0e3e61a3113ee1195be23cb4347ea2723b3087f79ef62ef87b65230ef405ed34

See more details on using hashes here.

Provenance

The following attestation bundles were made for ime_utils-0.2.3.tar.gz:

Publisher: python-publish.yml on hantang/ime-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ime_utils-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: ime_utils-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ime_utils-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96467b37142cbff03db242201103cba3d6acbe2cf74b726a570434be6b7344d7
MD5 7b9ca65fd5000001462cb4b019f30158
BLAKE2b-256 e6f4fff6aec36c2f8bc1d5f312a53fc6d7052e1b46f89b379c15dd6356e1007c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ime_utils-0.2.3-py3-none-any.whl:

Publisher: python-publish.yml on hantang/ime-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page