Fix formatting

This commit is contained in:
ines 2017-11-01 16:44:08 +01:00
parent 39e0586192
commit 705a4e3e4a
1 changed files with 4 additions and 4 deletions

View File

@ -848,11 +848,11 @@ cdef class Doc:
attributes[LEMMA] = lemma attributes[LEMMA] = lemma
attributes[ENT_TYPE] = ent_type attributes[ENT_TYPE] = ent_type
elif not args: elif not args:
if "label" in attributes and 'ent_type' not in attributes: if 'label' in attributes and 'ent_type' not in attributes:
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: