From ef97b90833ff7548faba258bd7835685217e4943 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 28 Jun 2015 06:22:18 +0200 Subject: [PATCH] * Fix token scoring --- 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 79f665d01..4131b3de2 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -230,7 +230,7 @@ def main(train_loc, dev_loc, model_dir, n_sents=0, n_iter=15, out_loc="", verbos scorer = evaluate(English, list(read_json_file(dev_loc)), model_dir, gold_preproc=gold_preproc, verbose=verbose, beam_width=beam_width) - print 'TOK', 100-scorer.token_acc + print 'TOK', scorer.token_acc print 'POS', scorer.tags_acc print 'UAS', scorer.uas print 'LAS', scorer.las