mirror of https://github.com/explosion/spaCy.git
* Fix space check in gold.pyx
This commit is contained in:
parent
81aa4e6dcc
commit
2ae0b439b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue