* Fix scoring on train.py for Chinese

This commit is contained in:
Matthew Honnibal 2016-04-27 10:25:41 +02:00
parent 92dcfd798a
commit b1cf2c16c3

View File

@ -174,7 +174,7 @@ def evaluate(Language, gold_tuples, model_dir, gold_preproc=False, verbose=False
else:
tokens = nlp(raw_text)
gold = GoldParse(tokens, annot_tuples)
scorer.score(tokens, gold, verbose=verbose)
scorer.score(tokens, gold, verbose=verbose, punct_labels=('p', 'punct', 'char'))
return scorer