mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
Don't set morph rules without tag map
This commit is contained in:
parent
4930f0fa8f
commit
9a5b2bdd4c
|
@ -20,7 +20,6 @@ class Norwegian(Language):
|
||||||
|
|
||||||
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
||||||
stop_words = set(STOP_WORDS)
|
stop_words = set(STOP_WORDS)
|
||||||
morph_rules = dict(MORPH_RULES)
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Norwegian']
|
__all__ = ['Norwegian']
|
||||||
|
|
|
@ -22,7 +22,6 @@ class Swedish(Language):
|
||||||
|
|
||||||
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
||||||
stop_words = set(STOP_WORDS)
|
stop_words = set(STOP_WORDS)
|
||||||
morph_rules = dict(MORPH_RULES)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_lemmatizer(cls, nlp=None):
|
def create_lemmatizer(cls, nlp=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user