* Fix punctuation eval in scorer.py

This commit is contained in:
Matthew Honnibal 2015-06-28 01:31:39 +02:00
parent 335ad66421
commit cfcbd8d256
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Scorer(object):
self.tags.fp += 1
else:
cand_tags.add((gold_i, token.tag_))
if token.dep_ not in ('p', 'punct') and token.orth_.strip():
if token.dep_.lower() not in ('p', 'punct') and token.orth_.strip():
gold_head = gold.cand_to_gold[token.head.i]
# None is indistinct, so we can't just add it to the set
# Multiple (None, None) deps are possible