From 5bd311c77ed90f929b895ebf8aa419c5d2499179 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 3 Jun 2017 20:54:09 +0200 Subject: [PATCH] Fix update of norm exceptions --- spacy/lang/en/norm_exceptions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spacy/lang/en/norm_exceptions.py b/spacy/lang/en/norm_exceptions.py index ec106b960..c5f7baad5 100644 --- a/spacy/lang/en/norm_exceptions.py +++ b/spacy/lang/en/norm_exceptions.py @@ -1754,8 +1754,7 @@ _exc = { } +NORM_EXCEPTIONS = {} + for string, norm in _exc.items(): - _exc[string.title()] = norm - - -NORM_EXCEPTIONS = _exc + NORM_EXCEPTIONS[string.title()] = norm