Skip to content

Commit

Permalink
Update quickstart.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY authored Jun 20, 2020
1 parent f2a63dc commit 84078fc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
from ltp4 import LTP
ltp = LTP()
sent_list = ltp.sent_split(inputs=["他叫汤姆去拿外衣。", "汤姆生病了。他去了医院。"],
flag="all", limit=512)
sents = ltp.sent_split(["他叫汤姆去拿外衣。", "汤姆生病了。他去了医院。"])
# sent_list=["他叫汤姆去拿外衣。",
# "汤姆生病了。",
# "他去了医院。"]
# [
# "他叫汤姆去拿外衣。",
# "汤姆生病了。",
# "他去了医院。"
# ]
分词
------------------
Expand Down Expand Up @@ -199,4 +200,4 @@ LTP Server 是对 LTP 的一个简单包装,依赖于 tornado,使用方式
.. code-block:: bash
pip install ltp, tornado
python utils/server.py serve
python utils/server.py serve

0 comments on commit 84078fc

Please sign in to comment.