Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update NER output in README and trival fixes #125

Merged
merged 1 commit into from
Jun 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions sequence_tagging_for_ner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ Baghdad NNP I-NP I-LOC
target_file="data/target.txt")
```

2. 在终端运行 `python infer.py`,开始测试,会看到如下预测结果:
2. 在终端运行 `python infer.py`,开始测试,会看到如下预测结果(以下为训练500个pass所得模型的部分预测结果)

```text
cricket O
- O
leicestershire O
leicestershire B-ORG
take O
over O
at O
Expand All @@ -152,6 +152,15 @@ Baghdad NNP I-NP I-LOC
innings O
victory O
. O
london B-LOC
1996-08-30 O
west B-MISC
indian I-MISC
all-rounder O
phil B-PER
simmons I-PER
took O
four O

```
输出分为两列,以“\t” 分隔,第一列是输入的词语,第二列是标记结果。多条输入序列之间以空行分隔。
Expand Down
13 changes: 11 additions & 2 deletions sequence_tagging_for_ner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@
target_file="data/target.txt")
```

2. 在终端运行 `python infer.py`,开始测试,会看到如下预测结果:
2. 在终端运行 `python infer.py`,开始测试,会看到如下预测结果(以下为训练500个pass所得模型的部分预测结果)

```text
cricket O
- O
leicestershire O
leicestershire B-ORG
take O
over O
at O
Expand All @@ -194,6 +194,15 @@
innings O
victory O
. O
london B-LOC
1996-08-30 O
west B-MISC
indian I-MISC
all-rounder O
phil B-PER
simmons I-PER
took O
four O

```
输出分为两列,以“\t” 分隔,第一列是输入的词语,第二列是标记结果。多条输入序列之间以空行分隔。
Expand Down
2 changes: 1 addition & 1 deletion sequence_tagging_for_ner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from collections import defaultdict

logger = logging.getLogger("logger")
logger = logging.getLogger("paddle")
logger.setLevel(logging.INFO)


Expand Down