mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-11 17:56:30 +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
|
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):
|
class Irish(Language):
|
||||||
lang = 'ga'
|
lang = 'ga'
|
||||||
|
Defaults = IrishDefaults
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Irish']
|
__all__ = ['Irish']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user