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.20.0.tar.gz (21.1 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.20.0-py2.py3-none-any.whl (36.8 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: MicroTokenizer-0.20.0.tar.gz
  • Upload date:
  • Size: 21.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for MicroTokenizer-0.20.0.tar.gz
Algorithm Hash digest
SHA256 0d657bc18ad53150baf63191dac957db0bdcdb68971c4947c3b9d33b9948d7bd
MD5 b096d08e562b6873bed6d2055ea2917f
BLAKE2b-256 3f2e0a704c1f240762d3f42391273c4e3f181c0a8211f16ec93211a92a53b1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: MicroTokenizer-0.20.0-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.10.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.11

File hashes

Hashes for MicroTokenizer-0.20.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 064210d0abe59fdfae46ab929d223e29278973a751b2c4a7904c53cd9dbf05cb
MD5 7f2de641334536ab652e066fa0473cfa
BLAKE2b-256 42ba4bef972dd22598c4cd8a007ec2531c1fc3e1dfdd58684f5f745a583d2b4d

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