From 6e68b344c1f11a4187ff51108d56dc897214b35a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 12 Nov 2015 04:43:52 +1100 Subject: [PATCH] * Train after parsing, not before. --- bin/parser/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/parser/train.py b/bin/parser/train.py index 0a9d34ffc..a7dc74770 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -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)