From e6945c4d0e5b7222fc7625e7a74fce76379cbdff Mon Sep 17 00:00:00 2001 From: Wolfgang Seeker Date: Fri, 15 Apr 2016 15:46:31 +0200 Subject: [PATCH] bugfix: uppercase attr values before looking them up --- spacy/matcher.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/matcher.pyx b/spacy/matcher.pyx index 6b50d9a40..b57312e32 100644 --- a/spacy/matcher.pyx +++ b/spacy/matcher.pyx @@ -112,7 +112,7 @@ def _convert_strings(token_specs, string_store): converted.append([]) for attr, value in spec.items(): if isinstance(attr, basestring): - attr = attrs.IDS.get(attr) + attr = attrs.IDS.get(attr.upper()) if isinstance(value, basestring): value = string_store[value] if isinstance(value, bool):