mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +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)
|
||||
stop_words = set(STOP_WORDS)
|
||||
morph_rules = dict(MORPH_RULES)
|
||||
|
||||
|
||||
__all__ = ['Norwegian']
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user