mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
* Ignore char deps when scoring
This commit is contained in:
parent
e3de3f62cb
commit
1cc4c613dc
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user