mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 21:57:15 +03:00
2fad279a44
* added tr_vocab to config * basic test * added syntax iterator to Turkish lang class * first version for Turkish syntax iter, without flat * added simple tests with nmod, amod, det * more tests to amod and nmod * separated noun chunks and parser test * rearrangement after nchunk parser separation * added recursive NPs * tests with complicated recursive NPs * tests with conjed NPs * additional tests for conj NP * small modification for shaving off conj from NP * added tests with flat * more tests with flat * added examples with flats conjed * added inner func for flat trick * corrected parse Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
21 lines
494 B
Python
21 lines
494 B
Python
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
|
|
from .stop_words import STOP_WORDS
|
|
from .syntax_iterators import SYNTAX_ITERATORS
|
|
from .lex_attrs import LEX_ATTRS
|
|
from ...language import Language
|
|
|
|
|
|
class TurkishDefaults(Language.Defaults):
|
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
|
lex_attr_getters = LEX_ATTRS
|
|
stop_words = STOP_WORDS
|
|
syntax_iterators = SYNTAX_ITERATORS
|
|
|
|
|
|
class Turkish(Language):
|
|
lang = "tr"
|
|
Defaults = TurkishDefaults
|
|
|
|
|
|
__all__ = ["Turkish"]
|