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