From cfcbd8d2567fbac45db8d712b89a7dd44809f38d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 28 Jun 2015 01:31:39 +0200 Subject: [PATCH] * Fix punctuation eval in scorer.py --- spacy/scorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/scorer.py b/spacy/scorer.py index 509966308..0e3c6fd53 100644 --- a/spacy/scorer.py +++ b/spacy/scorer.py @@ -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