Fix train script for 1.0

This commit is contained in:
Matthew Honnibal 2016-11-25 08:57:37 -06:00
parent 080d29e092
commit 314bc8d34f
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def evaluate(Language, gold_tuples, model_dir, gold_preproc=False, verbose=False
nlp.entity(tokens) nlp.entity(tokens)
else: else:
tokens = nlp(raw_text) tokens = nlp(raw_text)
gold = GoldParse(tokens, annot_tuples) gold = GoldParse.from_annot_tuples(tokens, annot_tuples)
scorer.score(tokens, gold, verbose=verbose) scorer.score(tokens, gold, verbose=verbose)
return scorer return scorer