Skip to content

Commit c26ec0d

Browse files
committed
add exception error for printing
1 parent b47f80a commit c26ec0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data/ner/2_tag_to_bio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def build_data(fns, mode, valid_tags):
3030
tag_value_end_idx = re.search('(</([^>]+)>)', matchObj.group()).start() - 1
3131
except:
3232
print(matchObj.group()[1:tag_value_start_idx-1])
33-
print(char_sentence)
34-
print(label)
35-
print("mode: {}".format(mode))
33+
print(tagged_sentence)
3634
raise ValueError(ex_idx)
3735

3836
tag_name = matchObj.group()[1:tag_value_start_idx-1]

0 commit comments

Comments
 (0)