mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-15 14:42:00 +03:00
Fix gold_preproc
This commit is contained in:
parent
8f420f3978
commit
7376518af2
|
@ -54,8 +54,7 @@ class Corpus:
|
|||
references = [sent.as_doc() for sent in whole_reference.sents]
|
||||
else:
|
||||
references = [whole_reference]
|
||||
for ref_sent in references:
|
||||
reference = ref_sent.as_doc()
|
||||
for reference in references:
|
||||
predicted = Doc(
|
||||
nlp.vocab,
|
||||
words=[t.text for t in reference],
|
||||
|
|
Loading…
Reference in New Issue
Block a user