Output unlabelled spans from O biluo tags in iob_utils

This commit is contained in:
Matthew Honnibal 2020-06-24 18:03:44 +02:00
parent 7eb064854e
commit 8bbf31a582

View File

@ -181,6 +181,8 @@ def tags_to_entities(tags):
# TODO: We shouldn't be getting these malformed inputs. Fix this.
if start is not None:
start = None
else:
entities.append(("", i, i))
continue
elif tag == "-":
continue