Fix gold_preproc

This commit is contained in:
Matthew Honnibal 2020-06-23 12:01:29 +02:00
parent 8f420f3978
commit 7376518af2

View File

@ -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],