remove breakpoint

pull/40/head
Kai Labusch 5 years ago
parent ee07c0cf7c
commit 8d79c67478

@ -130,10 +130,7 @@ def ner(tsv, ner_rest_endpoint):
ner_token, ner_tag, sentence_break = next(result_sequence) ner_token, ner_tag, sentence_break = next(result_sequence)
ner_token_concat += ner_token ner_token_concat += ner_token
try:
assert len(row_token) >= len(ner_token_concat) assert len(row_token) >= len(ner_token_concat)
except AssertionError:
import ipdb;ipdb.set_trace()
if sentence_break: if sentence_break:
tsv_result.append((0, '', 'O', 'O', '-', row.url_id, row.left, row.right, row.top, row.bottom)) tsv_result.append((0, '', 'O', 'O', '-', row.url_id, row.left, row.right, row.top, row.bottom))

Loading…
Cancel
Save