mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-05 06:00:36 +03:00
Ignore more morphology attributes in deprecated mode of intify_attrs
This commit is contained in:
parent
7a98ee5e5a
commit
3980f1b0cb
|
@ -124,10 +124,15 @@ def intify_attrs(stringy_attrs, strings_map=None, _do_deprecated=False):
|
||||||
'PunctType', 'PunctSide', 'Other', 'Degree', 'AdvType', 'Number',
|
'PunctType', 'PunctSide', 'Other', 'Degree', 'AdvType', 'Number',
|
||||||
'VerbForm', 'PronType', 'Aspect', 'Tense', 'PartType', 'Poss',
|
'VerbForm', 'PronType', 'Aspect', 'Tense', 'PartType', 'Poss',
|
||||||
'Hyph', 'ConjType', 'NumType', 'Foreign', 'VerbType', 'NounType',
|
'Hyph', 'ConjType', 'NumType', 'Foreign', 'VerbType', 'NounType',
|
||||||
'Number', 'PronType', 'AdjType', 'Person']
|
'Number', 'PronType', 'AdjType', 'Person', 'Variant', 'AdpType',
|
||||||
|
'Reflex', 'Negative', 'Mood', 'Aspect', 'Case']
|
||||||
for key in morph_keys:
|
for key in morph_keys:
|
||||||
if key in stringy_attrs:
|
if key in stringy_attrs:
|
||||||
stringy_attrs.pop(key)
|
stringy_attrs.pop(key)
|
||||||
|
elif key.lower() in stringy_attrs:
|
||||||
|
stringy_attrs.pop(key.lower())
|
||||||
|
elif key.upper() in stringy_attrs:
|
||||||
|
stringy_attrs.pop(key.upper())
|
||||||
for name, value in stringy_attrs.items():
|
for name, value in stringy_attrs.items():
|
||||||
if isinstance(name, int):
|
if isinstance(name, int):
|
||||||
int_key = name
|
int_key = name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user