mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 10:55:52 +03:00
* Tweak verbose output printing in scorer.py
This commit is contained in:
parent
e0ef6b6992
commit
69840d8cc3
|
@ -47,7 +47,7 @@ class Scorer(object):
|
||||||
if not self.skip_token(i, token, gold):
|
if not self.skip_token(i, token, gold):
|
||||||
self.total += 1
|
self.total += 1
|
||||||
if verbose:
|
if verbose:
|
||||||
print token.orth_, token.dep_, token.head.orth_
|
print token.orth_, token.dep_, token.head.orth_, token.head.i == gold.heads[i]
|
||||||
if token.head.i == gold.heads[i]:
|
if token.head.i == gold.heads[i]:
|
||||||
self.heads_corr += 1
|
self.heads_corr += 1
|
||||||
self.labels_corr += token.dep_ == gold.labels[i]
|
self.labels_corr += token.dep_ == gold.labels[i]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user