Skip to content

Commit

Permalink
Merge branches 'relaxed_upper_bounds' and 'relaxed_upper_bounds' of h…
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Oct 10, 2023
2 parents 0b069e3 + aa75b07 commit b12e4a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import dacy
from dacy.datasets import dane, female_names, male_names, muslim_names
from spacy.lang.da import Danish
from spacy.training import Example
from spacy.training.corpus import Corpus

import dacy
from dacy.datasets import dane, female_names, male_names, muslim_names


def test_dane():
train, dev, test = dane(open_unverified_connection=True) # type: ignore
train, dev, test = dane(open_unverified_connection=True) # type: ignore
all_ = dacy.datasets.dane(splits=["all"]) # type: ignore
for d in [train, dev, test, all_]:
assert isinstance(d, Corpus)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ def test_ner():
doc = nlp("Jeg hedder Peter og bor i København")
assert doc.ents[0].text == "Peter"
assert doc.ents[0].label_ == "PER"
assert doc.ents[1].text == "København" # type: ignore
assert doc.ents[1].text == "København" # type: ignore
assert doc.ents[1].label_ == "LOC" # type: ignore

0 comments on commit b12e4a3

Please sign in to comment.