From 846e80f2f4462e3e43770041d06874e9c504a2f5 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 25 Nov 2016 16:14:54 +0100 Subject: [PATCH] Exclude morphs from deprecated token attributes for now --- spacy/attrs.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spacy/attrs.pyx b/spacy/attrs.pyx index 3e847ccea..e9d602e72 100644 --- a/spacy/attrs.pyx +++ b/spacy/attrs.pyx @@ -114,10 +114,10 @@ def intify_attrs(stringy_attrs, strings_map=None, _do_deprecated=False): stringy_attrs["LEMMA"] = stringy_attrs.pop("L") if 'pos' in stringy_attrs: stringy_attrs["TAG"] = stringy_attrs.pop("pos") - if 'morph' in stringy_attrs: - morphs = stringy_attrs.pop('morph') - for name, value in morphs.items(): - stringy_attrs[name] = value + #if 'morph' in stringy_attrs: + # morphs = stringy_attrs.pop('morph') + # for name, value in morphs.items(): + # stringy_attrs[name] = value for name, value in stringy_attrs.items(): if isinstance(name, int): int_key = name