diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 0d5545a58..e9d23c568 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -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: