mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
bugfix: uppercase attr values before looking them up
This commit is contained in:
parent
c0909afe22
commit
e6945c4d0e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user