* Tweak verbose output printing in scorer.py

This commit is contained in:
Matthew Honnibal 2015-05-06 16:31:23 +02:00
parent e0ef6b6992
commit 69840d8cc3
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Scorer(object):
if not self.skip_token(i, token, gold):
self.total += 1
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]:
self.heads_corr += 1
self.labels_corr += token.dep_ == gold.labels[i]