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
|
||||
|
||||
|
||||
class TatarDefaults(Language.Defaults):
|
||||
class KyrgyzDefaults(Language.Defaults):
|
||||
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)
|
||||
|
||||
|
@ -23,9 +23,9 @@ class TatarDefaults(Language.Defaults):
|
|||
stop_words = STOP_WORDS
|
||||
|
||||
|
||||
class Tatar(Language):
|
||||
lang = "tt"
|
||||
Defaults = TatarDefaults
|
||||
class Kyrgyz(Language):
|
||||
lang = "ky"
|
||||
Defaults = KyrgyzDefaults
|
||||
|
||||
|
||||
__all__ = ["Tatar"]
|
||||
__all__ = ["Kyrgyz"]
|
||||
|
|
Loading…
Reference in New Issue