* Train after parsing, not before.

This commit is contained in:
Matthew Honnibal 2015-11-12 04:43:52 +11:00
parent 4d579c8535
commit 6e68b344c1
1 changed files with 1 additions and 1 deletions

View File

@ -164,8 +164,8 @@ def evaluate(Language, gold_tuples, model_dir, gold_preproc=False, verbose=False
if raw_text is None: if raw_text is None:
tokens = nlp.tokenizer.tokens_from_list(annot_tuples[1]) tokens = nlp.tokenizer.tokens_from_list(annot_tuples[1])
nlp.tagger(tokens) nlp.tagger(tokens)
nlp.entity(tokens)
nlp.parser(tokens) nlp.parser(tokens)
nlp.entity(tokens)
else: else:
tokens = nlp(raw_text) tokens = nlp(raw_text)
gold = GoldParse(tokens, annot_tuples) gold = GoldParse(tokens, annot_tuples)