Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
asajatovic committed Jun 13, 2021
1 parent cc02ce5 commit 425b178
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_spacy_udpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ def download_lang(lang: str) -> None:
def test_serialization(lang: str) -> None:
with tempfile.TemporaryDirectory() as tdir:
nlp = load(lang=lang)
doc = nlp("A simple sentence.")
nlp.to_disk(tdir)
del nlp

nlp = spacy.load(tdir)
same_doc = nlp("A simple sentence.")

assert doc.to_json() == same_doc.to_json()


def test_pipe(lang: str) -> None:
Expand Down

0 comments on commit 425b178

Please sign in to comment.