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