jieba 0.39 中文分词
#! -*- coding:utf-8 -*- import jieba seg_list = jieba.cut("北京野生动物园轿车遭黑熊围堵") print "Default Mode:", ' '.join(seg_list) ''' Default Mode:Building prefix dict from the default dictionary ... Dumping model to file cache c:\users\e002627\appdata\local\temp\jieba.cache Loading model cost 1.431 seconds. Prefix dict has been built succesfully. 北京 野生 动物园 轿车 遭 黑熊 围堵 '''
jieba 0.39 安装说明
https://pypi.python.org/pypi/jieba/
代码对 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 来引用

 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号