From 314bc8d34fd38887208f94b17bb9a204f1d435a4 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 25 Nov 2016 08:57:37 -0600 Subject: [PATCH] Fix train script for 1.0 --- 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 5d588a317..574797ba5 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -100,7 +100,7 @@ def evaluate(Language, gold_tuples, model_dir, gold_preproc=False, verbose=False nlp.entity(tokens) else: tokens = nlp(raw_text) - gold = GoldParse(tokens, annot_tuples) + gold = GoldParse.from_annot_tuples(tokens, annot_tuples) scorer.score(tokens, gold, verbose=verbose) return scorer