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):
|
if isinstance(attributes["label"], int):
|
||||||
attributes[ENT_TYPE] = attributes["label"]
|
attributes[ENT_TYPE] = attributes["label"]
|
||||||
else:
|
else:
|
||||||
attributes[ENT_TYPE] = self.vocab.strings[attributes["label"])
|
attributes[ENT_TYPE] = self.vocab.strings[attributes["label"]]
|
||||||
if 'ent_type' in attributes:
|
if 'ent_type' in attributes:
|
||||||
attributes[ENT_TYPE] = attributes['ent_type']
|
attributes[ENT_TYPE] = attributes['ent_type']
|
||||||
elif args:
|
elif args:
|
||||||
|
|
Loading…
Reference in New Issue