From 9dfd30196289536bf0bbc029d1b0d36c0adbc190 Mon Sep 17 00:00:00 2001 From: Jim O'Regan Date: Mon, 11 Sep 2017 10:14:18 +0100 Subject: [PATCH] rearrange --- spacy/lang/ga/__init__.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/spacy/lang/ga/__init__.py b/spacy/lang/ga/__init__.py index 7b72a8a91..38b73468f 100644 --- a/spacy/lang/ga/__init__.py +++ b/spacy/lang/ga/__init__.py @@ -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']