From 1cc4c613dc76b71824bf2cdffaeaec01c84669d5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 25 Apr 2016 22:20:26 +0200 Subject: [PATCH] * Ignore char deps when 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 aa916d1e0..655830cc0 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -60,7 +60,7 @@ def score_model(scorer, nlp, raw_text, annot_tuples, verbose=False): nlp.entity(tokens) nlp.parser(tokens) gold = GoldParse(tokens, annot_tuples) - scorer.score(tokens, gold, verbose=verbose) + scorer.score(tokens, gold, verbose=verbose, punct_labels=('p', 'punct', 'char')) def _merge_sents(sents):