* Ignore char deps when scoring

This commit is contained in:
Matthew Honnibal 2016-04-25 22:20:26 +02:00
parent e3de3f62cb
commit 1cc4c613dc

View File

@ -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):