Update conll05.py

Fix #8079 and remove the redundant code
fix_conll05_bug
jiaozhenyu 7 years ago committed by GitHub
parent 0d8192fbec
commit 97094e46ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save