[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/nn and fo language extensions #13116

Merged
merged 15 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comments about example sentences' origin
  • Loading branch information
lise-brinck committed Nov 8, 2023
commit 7dfa86d8dee4cd86a3c7c91dac0a83401dba71f7
1 change: 1 addition & 0 deletions spacy/lang/nn/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""


# 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.",
Expand Down
1 change: 1 addition & 0 deletions spacy/tests/lang/fo/test_tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest

# examples taken from Basic LAnguage Resource Kit 1.0 for Faroese (https://www.openslr.org/125/)
FO_TOKEN_EXCEPTION_TESTS = [
(
"Eftir løgtingslóg um samsýning og eftirløn landsstýrismanna v.m., skulu løgmaður og landsstýrismenn vanliga siga frá sær størv í almennari tænastu ella privatum virkjum, samtøkum ella stovnum. ",
Expand Down
1 change: 1 addition & 0 deletions spacy/tests/lang/nn/test_tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest

# examples taken from Omsetjingsminne frå Nynorsk pressekontor 2022 (https://www.nb.no/sprakbanken/en/resource-catalogue/oai-nb-no-sbr-80/)
NN_TOKEN_EXCEPTION_TESTS = [
(
"Målet til direktoratet er at alle skal bli tilbydd jobb i politiet så raskt som mogleg i 2014.",
Expand Down