mirror of https://github.com/explosion/spaCy.git
Fix language subclass
This commit is contained in:
parent
fe3b5b8ff5
commit
2a2646362b
|
@ -11,9 +11,9 @@ from ...language import Language
|
||||||
from ...util import update_exc
|
from ...util import update_exc
|
||||||
|
|
||||||
|
|
||||||
class TatarDefaults(Language.Defaults):
|
class KyrgyzDefaults(Language.Defaults):
|
||||||
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
lex_attr_getters = dict(Language.Defaults.lex_attr_getters)
|
||||||
lex_attr_getters[LANG] = lambda text: "tt"
|
lex_attr_getters[LANG] = lambda text: "ky"
|
||||||
|
|
||||||
lex_attr_getters.update(LEX_ATTRS)
|
lex_attr_getters.update(LEX_ATTRS)
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@ class TatarDefaults(Language.Defaults):
|
||||||
stop_words = STOP_WORDS
|
stop_words = STOP_WORDS
|
||||||
|
|
||||||
|
|
||||||
class Tatar(Language):
|
class Kyrgyz(Language):
|
||||||
lang = "tt"
|
lang = "ky"
|
||||||
Defaults = TatarDefaults
|
Defaults = KyrgyzDefaults
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["Tatar"]
|
__all__ = ["Kyrgyz"]
|
||||||
|
|
Loading…
Reference in New Issue