Fix compile error

This commit is contained in:
Matthew Honnibal 2017-05-28 23:30:40 +02:00
parent 6d3caeadd2
commit 4ddff020c3
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ cdef class Doc:
if isinstance(attributes["label"], int):
attributes[ENT_TYPE] = attributes["label"]
else:
attributes[ENT_TYPE] = self.vocab.strings[attributes["label"])
attributes[ENT_TYPE] = self.vocab.strings[attributes["label"]]
if 'ent_type' in attributes:
attributes[ENT_TYPE] = attributes['ent_type']
elif args: