Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
endyul committed Jan 24, 2016
1 parent f55f26b commit d1260f2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions doc/ltptest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ltp_test主程序
includes:
- ws: Chinese word segmentation
- pos: Part of speech tagging
- ne: Named entity recognization
- ner: Named entity recognization
- dp: Dependency parsing
- srl: Semantic role labeling (equals to all)
- all: The whole pipeline [default]
Expand Down Expand Up @@ -93,19 +93,19 @@ Pipeline与last-stage参数

分词、词性标注、句法分析一系列任务之间存在依赖关系。举例来讲,对于词性标注,必须在分词结果之上进行才有意。LTP中提供的5种分析之间的依赖关系如下所示:

+--------------+------+--------+
| 任务 | 标记 | 依赖 |
+==============+======+========+
| 分词 | ws ||
+--------------+------+--------+
| 词性标注 | pos | ws |
+--------------+------+--------+
| 依存句法分析 | dp | pos |
+--------------+------+--------+
| 命名实体识别 | ne | pos |
+--------------+------+--------+
| 语义角色标注 | srl | dp, ne |
+--------------+------+--------+
+--------------+------+---------+
| 任务 | 标记 | 依赖 |
+==============+======+=========+
| 分词 | ws | |
+--------------+------+---------+
| 词性标注 | pos | ws |
+--------------+------+---------+
| 依存句法分析 | dp | pos |
+--------------+------+---------+
| 命名实体识别 | ner | pos |
+--------------+------+---------+
| 语义角色标注 | srl | dp, ner |
+--------------+------+---------+

默认情况下,LTP将进行至语义角色标注的分析。但是,对于一部分用户,某些分析并不必要。举例来讲,如果用户只需进行词性标注,则ltp_test的pipeline分析只需进行到pos,`last-stage`用来指明分析的最后状态。同时,如果`last-stage`指定为pos,句法分析、命名实体识别和语义角色标注的模型将不被加载。

Expand Down

0 comments on commit d1260f2

Please sign in to comment.