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>
16 lines
675 B
Python
16 lines
675 B
Python
"""
|
|
Example sentences to test spaCy and its language models.
|
|
|
|
>>> from spacy.lang.nn.examples import sentences
|
|
>>> docs = nlp.pipe(sentences)
|
|
"""
|
|
|
|
|
|
# sentences taken from Omsetjingsminne frå Nynorsk pressekontor 2022 (https://www.nb.no/sprakbanken/en/resource-catalogue/oai-nb-no-sbr-80/)
|
|
sentences = [
|
|
"Konseptet går ut på at alle tre omgangar tel, alle hopparar må stille i kvalifiseringa og poengsummen skal telje.",
|
|
"Det er ein meir enn i same periode i fjor.",
|
|
"Det har lava ned enorme snømengder i store delar av Europa den siste tida.",
|
|
"Akhtar Chaudhry er ikkje innstilt på Oslo-lista til SV, men utfordrar Heikki Holmås om førsteplassen.",
|
|
]
|