Skip to main content

jieba

“结巴”中文分词:做最好的 Python 中文分词组件

“Jieba” (Chinese for “to stutter”) Chinese text segmentation: built to be the best Python Chinese word segmentation module.

完整文档见 README.md

GitHub: https://github.com/fxsjy/jieba

特点

  • 支持三种分词模式:

    • 精确模式,试图将句子最精确地切开,适合文本分析;

    • 全模式,把句子中所有的可以成词的词语都扫描出来, 速度非常快,但是不能解决歧义;

    • 搜索引擎模式,在精确模式的基础上,对长词再次切分,提高召回率,适合用于搜索引擎分词。

  • 支持繁体分词

  • 支持自定义词典

  • MIT 授权协议

在线演示: http://jiebademo.ap01.aws.af.cm/

安装说明

代码对 Python 2/3 均兼容

  • 全自动安装: easy_install jieba 或者 pip install jieba / pip3 install jieba

  • 半自动安装:先下载 https://pypi.python.org/pypi/jieba/ ,解压后运行 python setup.py install

  • 手动安装:将 jieba 目录放置于当前目录或者 site-packages 目录

  • 通过 import jieba 来引用

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jieba-0.42.1.tar.gz (19.2 MB view details)

Uploaded Source

File details

Details for the file jieba-0.42.1.tar.gz.

File metadata

  • Download URL: jieba-0.42.1.tar.gz
  • Upload date:
  • Size: 19.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for jieba-0.42.1.tar.gz
Algorithm Hash digest
SHA256 055ca12f62674fafed09427f176506079bc135638a14e23e25be909131928db2
MD5 32091ceaebbd38baee82cfe88bd0003b
BLAKE2b-256 c6cb18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.42.1 This release

1 file

0.42

1 file

0.41

1 file

0.40

1 file

0.39

1 file

0.38

1 file

0.37

1 file

0.36.2

1 file

0.36.1

0.36

1 file

0.35

1 file

0.34

1 file

0.33

1 file

0.32

1 file

0.31

1 file

0.30

1 file

0.29.1

1 file

0.29

1 file

0.28.4

1 file

0.28.3

1 file

0.28.2

1 file

0.28.1

1 file

0.28

1 file

0.27

1 file

0.26.1

1 file

0.26

1 file

0.25

1 file

0.24

1 file

0.23

1 file

0.22

1 file

0.21

1 file

0.20

1 file

Supported by

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