Skip to content

Commit 97094e4

Browse files
authored
Update conll05.py
Fix #8079 and remove the redundant code
1 parent 0d8192f commit 97094e4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

python/paddle/v2/dataset/conll05.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def load_label_dict(filename):
5151
tag_dict.add(line[2:])
5252
elif line.startswith("I-"):
5353
tag_dict.add(line[2:])
54-
else:
55-
continue
5654
index = 0
5755
for tag in tag_dict:
5856
d["B-" + tag] = index

0 commit comments

Comments
 (0)