mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
* Python3 correction for GoldParse
This commit is contained in:
parent
ddc1a5cfe5
commit
7606d9936f
|
@ -218,7 +218,7 @@ cdef class GoldParse:
|
|||
self.cand_to_gold = align([t.orth_ for t in tokens], annot_tuples[1])
|
||||
self.gold_to_cand = align(annot_tuples[1], [t.orth_ for t in tokens])
|
||||
|
||||
self.orig_annot = zip(*annot_tuples)
|
||||
self.orig_annot = list(zip(*annot_tuples))
|
||||
|
||||
words = [w.orth_ for w in tokens]
|
||||
for i, gold_i in enumerate(self.cand_to_gold):
|
||||
|
|
Loading…
Reference in New Issue
Block a user