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):