mirror of https://github.com/explosion/spaCy.git
Fix compile error
This commit is contained in:
parent
6d3caeadd2
commit
4ddff020c3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue