spaCy/spacy/tests/morphology/test_morphology_pickle.py

18 lines
332 B
Python
Raw Normal View History

import pytest
import pickle
2015-10-13 12:20:10 +03:00
import io
from spacy.morphology import Morphology
from spacy.lemmatizer import Lemmatizer
from spacy.strings import StringStore
2016-02-05 14:46:58 +03:00
@pytest.mark.xfail
def test_pickle():
morphology = Morphology(StringStore(), {}, Lemmatizer({}, {}, {}))
2015-10-13 12:20:10 +03:00
file_ = io.BytesIO()
pickle.dump(morphology, file_)