mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
rearrange
This commit is contained in:
parent
187be6d372
commit
9dfd301962
|
@ -10,15 +10,16 @@ from ...attrs import LANG
|
|||
from ...util import update_exc
|
||||
|
||||
|
||||
class IrishDefaults(Language.Defaults):
|
||||
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
||||
lex_attr_getters[LANG] = lambda text: 'ga'
|
||||
|
||||
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
||||
stop_words = set(STOP_WORDS)
|
||||
|
||||
class Irish(Language):
|
||||
lang = 'ga'
|
||||
|
||||
class Defaults(Language.Defaults):
|
||||
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
||||
lex_attr_getters[LANG] = lambda text: 'ga'
|
||||
|
||||
tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS)
|
||||
stop_words = set(STOP_WORDS)
|
||||
Defaults = IrishDefaults
|
||||
|
||||
|
||||
__all__ = ['Irish']
|
||||
|
|
Loading…
Reference in New Issue
Block a user