未验证 提交 97094e46 编写于 作者: J jiaozhenyu 提交者: GitHub

Update conll05.py

Fix #8079 and remove the redundant code
上级 0d8192fb
......@@ -51,8 +51,6 @@ def load_label_dict(filename):
tag_dict.add(line[2:])
elif line.startswith("I-"):
tag_dict.add(line[2:])
else:
continue
index = 0
for tag in tag_dict:
d["B-" + tag] = index
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册