* Fix space check in gold.pyx

This commit is contained in:
Matthew Honnibal 2015-07-14 00:10:27 +02:00
parent 81aa4e6dcc
commit 2ae0b439b2
1 changed files with 2 additions and 1 deletions

View File

@ -217,8 +217,9 @@ cdef class GoldParse:
self.orig_annot = zip(*annot_tuples) self.orig_annot = zip(*annot_tuples)
words = [w.orth_ for w in tokens]
for i, gold_i in enumerate(self.cand_to_gold): for i, gold_i in enumerate(self.cand_to_gold):
if self.words[i].isspace(): if words[i].isspace():
self.tags[i] = 'SP' self.tags[i] = 'SP'
self.heads[i] = None self.heads[i] = None
self.labels[i] = None self.labels[i] = None