From 4ddff020c339b3a2c5aa2f3152f05b21d32ca4ae Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 28 May 2017 23:30:40 +0200 Subject: [PATCH] Fix compile error --- spacy/tokens/doc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: