Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Apr 8, 2021
1 parent c715708 commit 0fa1ab1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ LTP 使用的是863词性标注集,其各个词性含义如下表。
+-----+---------------------+------------+-----+-------------------+------------+
| nh | person name | 杜甫, 汤姆 | x | non-lexeme | 萄, 翱 |
+-----+---------------------+------------+-----+-------------------+------------+
| | | | z | descriptive words | 瑟瑟,匆匆 |
+-----+---------------------+------------+-----+-------------------+------------+


命名实体识别标注集
-------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
ltp = LTP()
seg, hidden = ltp.seg(["他叫汤姆去拿外衣。"])
sdp = ltp.sdp(hidden, graph=False)
sdp = ltp.sdp(hidden, mode='tree')
# [['他', '叫', '汤姆', '去', '拿', '外衣', '。']]
# [
# [
Expand All @@ -210,7 +210,7 @@
ltp = LTP()
seg, hidden = ltp.seg(["他叫汤姆去拿外衣。"])
sdp = ltp.sdp(hidden, graph=True)
sdp = ltp.sdp(hidden, mode='graph')
# [['他', '叫', '汤姆', '去', '拿', '外衣', '。']]
# [
# [
Expand Down

0 comments on commit 0fa1ab1

Please sign in to comment.