* Train after parsing, not before.

This commit is contained in:
Matthew Honnibal 2015-11-12 04:43:52 +11:00
parent 4d579c8535
commit 6e68b344c1

View File

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