mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 06:09:01 +03:00
b6e022381d
* add language extensions for norwegian nynorsk and faroese * update docstring for nn/examples.py * use relative imports * add fo and nn tokenizers to pytest fixtures * add unittests for fo and nn and fix bug in nn * remove module docstring from fo/__init__.py * add comments about example sentences' origin * add license information to faroese data credit * format unittests using black * add __init__ files to test/lang/nn and tests/lang/fo * fix import order and use relative imports in fo/__nit__.py and nn/__init__.py * Make the tests a bit more compact * Add fo and nn to website languages * Add note about jul. * Add "jul." as exception --------- Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
19 lines
471 B
Python
19 lines
471 B
Python
from ...language import BaseDefaults, Language
|
|
from ..punctuation import TOKENIZER_INFIXES, TOKENIZER_PREFIXES, TOKENIZER_SUFFIXES
|
|
from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS
|
|
|
|
|
|
class FaroeseDefaults(BaseDefaults):
|
|
tokenizer_exceptions = TOKENIZER_EXCEPTIONS
|
|
infixes = TOKENIZER_INFIXES
|
|
suffixes = TOKENIZER_SUFFIXES
|
|
prefixes = TOKENIZER_PREFIXES
|
|
|
|
|
|
class Faroese(Language):
|
|
lang = "fo"
|
|
Defaults = FaroeseDefaults
|
|
|
|
|
|
__all__ = ["Faroese"]
|