Skip to main content

A micro tokenizer for Chinese

Project description

微型中文分词器

一个微型的中文分词器,目前提供了七种分词算法:

  1. 按照词语的频率(概率)来利用构建 DAG(有向无环图)来分词,使用 Trie Tree 构建前缀字典树

  2. 使用隐马尔可夫模型(Hidden Markov Model,HMM)来分词

  3. 融合 DAG 和 HMM 两种分词模型的结果,按照分词粒度最大化的原则进行融合得到的模型

  4. 正向最大匹配法

  5. 反向最大匹配法

  6. 双向最大匹配法

  7. 基于 CRF (Conditional Random Field, 条件随机场) 的分词方法

特点 / 特色

  • 面向教育:可以导出 graphml 格式的图结构文件,辅助学习者理解算法过程

  • 良好的分词性能:由于使用类似 结巴分词 的算法,具有良好的分词性能

  • 具有良好的扩展性:使用和 结巴分词 一样的字典文件,可以轻松添加自定义字典

  • 自定义能力强

  • 提供工具和脚本帮助用户训练自己的分词模型而不是使用内建的模型


更多内容见仓库 https://github.com/howl-anderson/MicroTokenizer

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

MicroTokenizer-0.17.2.tar.gz (18.5 MB view details)

Uploaded Source

Built Distribution

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

MicroTokenizer-0.17.2-py2.py3-none-any.whl (36.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file MicroTokenizer-0.17.2.tar.gz.

File metadata

  • Download URL: MicroTokenizer-0.17.2.tar.gz
  • Upload date:
  • Size: 18.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for MicroTokenizer-0.17.2.tar.gz
Algorithm Hash digest
SHA256 75ac0c4024a327318ccd3c811bcae8de6f31722a74f31a7f682d0320669f9a8b
MD5 bb4021088d8eeb28486d8cbfcb8f5eca
BLAKE2b-256 6a3abdf59978d8546205163fcefa0ecf53ca8d060bf6e2d3e9ca04b33c3334e3

See more details on using hashes here.

File details

Details for the file MicroTokenizer-0.17.2-py2.py3-none-any.whl.

File metadata

  • Download URL: MicroTokenizer-0.17.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.8 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for MicroTokenizer-0.17.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ad94551e9a31800431b647821c18da3f4f5b094a439b488e61a785e80557a86
MD5 43a4ee3414feb91b4a524d2e230e777b
BLAKE2b-256 3b2cf6bc85fceb4acc7e18e7ddf9ed5369d18033203131b9613a4dba18a128dc

See more details on using hashes here.

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