diff --git a/spacy/gold/iob_utils.py b/spacy/gold/iob_utils.py index 3ae911418..f934bc013 100644 --- a/spacy/gold/iob_utils.py +++ b/spacy/gold/iob_utils.py @@ -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