Remove unused error

This commit is contained in:
Adriane Boyd 2020-09-24 13:41:55 +02:00
parent 1c63f02f99
commit 5c13e0cf1b
2 changed files with 0 additions and 5 deletions

View File

@ -692,9 +692,6 @@ class Errors:
"options: {modes}")
E1012 = ("Entity spans and blocked/missing/outside spans should be "
"provided to doc.set_ents as lists of `Span` objects.")
E1013 = ("Unable to set entity for span with empty label. Entity spans are "
"required to have a label. To set entity information as missing "
"or blocked, use the keyword arguments with doc.set_ents.")
@add_codes

View File

@ -725,8 +725,6 @@ cdef class Doc:
# Set all specified entity information
for span in entities:
for i in range(span.start, span.end):
if not span.label:
raise ValueError(Errors.E1013)
if i == span.start:
self.c[i].ent_iob = 3
else: