mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
* More debug prints
This commit is contained in:
parent
5458f220f8
commit
b38093237e
|
@ -105,7 +105,9 @@ def _align_annotations_to_non_gold_tokens(tokens, words, annot):
|
||||||
print words
|
print words
|
||||||
for token in tokens:
|
for token in tokens:
|
||||||
print token.orth_, words[0]
|
print token.orth_, words[0]
|
||||||
|
print token.idx, annot[0][0]
|
||||||
while annot and token.idx > annot[0][0]:
|
while annot and token.idx > annot[0][0]:
|
||||||
|
print 'pop', token.idx, annot[0][0]
|
||||||
annot.pop(0)
|
annot.pop(0)
|
||||||
words.pop(0)
|
words.pop(0)
|
||||||
loss += 1
|
loss += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user