Skip to content

Commit 885417a

Browse files
committedMar 21, 2015
Merge pull request fxsjy#247 from gumblex/master
更新文档
2 parents 89481cf + eeaab01 commit 885417a

File tree

2 files changed

+7
-34
lines changed

2 files changed

+7
-34
lines changed
 

‎README.md

+4-14
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,14 @@ http://jiebademo.ap01.aws.af.cm/
2929

3030
安装说明
3131
=======
32-
Python 2.x
33-
-----------
34-
* 全自动安装:`easy_install jieba` 或者 `pip install jieba`
32+
33+
代码对 Python 2/3 均兼容
34+
35+
* 全自动安装:`easy_install jieba` 或者 `pip install jieba` / `pip3 install jieba`
3536
* 半自动安装:先下载 http://pypi.python.org/pypi/jieba/ ,解压后运行 `python setup.py install`
3637
* 手动安装:将 jieba 目录放置于当前目录或者 site-packages 目录
3738
* 通过 `import jieba` 来引用
3839

39-
Python 3.x
40-
-----------
41-
* 目前 master 分支对 Python 2/3 兼容
42-
43-
```shell
44-
git clone https://github.com/fxsjy/jieba.git
45-
python3 setup.py install
46-
```
47-
48-
* 或使用pip3安装旧版本: pip3 install jieba3k
49-
5040
算法
5141
========
5242
* 基于前缀词典实现高效的词图扫描,生成句子中汉字所有可能成词情况所构成的有向无环图 (DAG)

‎setup.py

+3-20
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,21 @@
2525
2626
- 支持繁体分词
2727
- 支持自定义词典
28+
- MIT 授权协议
2829
2930
在线演示: http://jiebademo.ap01.aws.af.cm/
3031
3132
安装说明
3233
========
3334
34-
Python 2.x
35-
----------
35+
代码对 Python 2/3 均兼容
3636
37-
- 全自动安装: ``easy_install jieba`` 或者 ``pip install jieba``
37+
- 全自动安装: ``easy_install jieba`` 或者 ``pip install jieba`` / ``pip3 install jieba``
3838
- 半自动安装:先下载 https://pypi.python.org/pypi/jieba/ ,解压后运行
3939
python setup.py install
4040
- 手动安装:将 jieba 目录放置于当前目录或者 site-packages 目录
4141
- 通过 ``import jieba`` 来引用
4242
43-
Python 3.x
44-
----------
45-
46-
见 https://pypi.python.org/pypi/jieba3k/
47-
48-
- 目前 master 分支是只支持 Python 2.x 的
49-
- Python 3.x 版本的分支也已经基本可用:
50-
https://github.com/fxsjy/jieba/tree/jieba3k
51-
52-
.. code:: bash
53-
54-
git clone https://github.com/fxsjy/jieba.git
55-
git checkout jieba3k
56-
python setup.py install
57-
58-
- 或使用pip3安装: pip3 install jieba3k
59-
6043
"""
6144

6245
setup(name='jieba',

0 commit comments

Comments
 (0)
Please sign in to comment.