From 2ae0b439b29ece83506693fc1c3827b70d19f693 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 14 Jul 2015 00:10:27 +0200 Subject: [PATCH] * Fix space check in gold.pyx --- spacy/gold.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/gold.pyx b/spacy/gold.pyx index 21ccc94b1..57473b002 100644 --- a/spacy/gold.pyx +++ b/spacy/gold.pyx @@ -217,8 +217,9 @@ cdef class GoldParse: self.orig_annot = zip(*annot_tuples) + words = [w.orth_ for w in tokens] for i, gold_i in enumerate(self.cand_to_gold): - if self.words[i].isspace(): + if words[i].isspace(): self.tags[i] = 'SP' self.heads[i] = None self.labels[i] = None