From 4e0610d0d46e6cd1af0375c745190b8713b6c44e Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Wed, 3 Jun 2020 14:37:09 +0200 Subject: [PATCH] Update warning codes --- spacy/morphology.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index 31d83244c..399ce406e 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -42,7 +42,7 @@ def _normalize_props(props): elif isinstance(key, (int, str)) and isinstance(value, (int, str)): out[key] = value else: - warnings.warn(Warnings.W095.format(feature={key: value})) + warnings.warn(Warnings.100.format(feature={key: value})) return out @@ -112,7 +112,7 @@ cdef class Morphology: return tag_ptr.key features = self.feats_to_dict(features) if not isinstance(features, dict): - warnings.warn(Warnings.W095.format(feature=features)) + warnings.warn(Warnings.W100.format(feature=features)) features = {} features = _normalize_props(features) string_features = {self.strings.as_string(field): self.strings.as_string(values) for field, values in features.items()}