From 9a5b2bdd4c4a778577b2534244ec497d93f43201 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 8 May 2017 16:15:12 +0200 Subject: [PATCH] Don't set morph rules without tag map --- spacy/nb/__init__.py | 1 - spacy/sv/__init__.py | 1 - 2 files changed, 2 deletions(-) diff --git a/spacy/nb/__init__.py b/spacy/nb/__init__.py index f6ac9fdbb..72eb5ad81 100644 --- a/spacy/nb/__init__.py +++ b/spacy/nb/__init__.py @@ -20,7 +20,6 @@ class Norwegian(Language): tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = set(STOP_WORDS) - morph_rules = dict(MORPH_RULES) __all__ = ['Norwegian'] diff --git a/spacy/sv/__init__.py b/spacy/sv/__init__.py index a759ddc77..5235b530f 100644 --- a/spacy/sv/__init__.py +++ b/spacy/sv/__init__.py @@ -22,7 +22,6 @@ class Swedish(Language): tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = set(STOP_WORDS) - morph_rules = dict(MORPH_RULES) @classmethod def create_lemmatizer(cls, nlp=None):