mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +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