Skip to content

Commit

Permalink
Merge pull request #247 from gumblex/master
Browse files Browse the repository at this point in the history
更新文档
  • Loading branch information
fxsjy committed Mar 21, 2015
2 parents 89481cf + eeaab01 commit 885417a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 34 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,14 @@ http://jiebademo.ap01.aws.af.cm/

安装说明
=======
Python 2.x
-----------
* 全自动安装:`easy_install jieba` 或者 `pip install jieba`

代码对 Python 2/3 均兼容

* 全自动安装:`easy_install jieba` 或者 `pip install jieba` / `pip3 install jieba`
* 半自动安装:先下载 http://pypi.python.org/pypi/jieba/ ,解压后运行 `python setup.py install`
* 手动安装:将 jieba 目录放置于当前目录或者 site-packages 目录
* 通过 `import jieba` 来引用

Python 3.x
-----------
* 目前 master 分支对 Python 2/3 兼容

```shell
git clone https://github.com/fxsjy/jieba.git
python3 setup.py install
```

* 或使用pip3安装旧版本: pip3 install jieba3k

算法
========
* 基于前缀词典实现高效的词图扫描,生成句子中汉字所有可能成词情况所构成的有向无环图 (DAG)
Expand Down
23 changes: 3 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,21 @@
- 支持繁体分词
- 支持自定义词典
- MIT 授权协议
在线演示: http://jiebademo.ap01.aws.af.cm/
安装说明
========
Python 2.x
----------
代码对 Python 2/3 均兼容
- 全自动安装: ``easy_install jieba`` 或者 ``pip install jieba``
- 全自动安装: ``easy_install jieba`` 或者 ``pip install jieba`` / ``pip3 install jieba``
- 半自动安装:先下载 https://pypi.python.org/pypi/jieba/ ,解压后运行
python setup.py install
- 手动安装:将 jieba 目录放置于当前目录或者 site-packages 目录
- 通过 ``import jieba`` 来引用
Python 3.x
----------
见 https://pypi.python.org/pypi/jieba3k/
- 目前 master 分支是只支持 Python 2.x 的
- Python 3.x 版本的分支也已经基本可用:
https://github.com/fxsjy/jieba/tree/jieba3k
.. code:: bash
git clone https://github.com/fxsjy/jieba.git
git checkout jieba3k
python setup.py install
- 或使用pip3安装: pip3 install jieba3k
"""

setup(name='jieba',
Expand Down

0 comments on commit 885417a

Please sign in to comment.