mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-30 20:06:30 +03:00
18 lines
332 B
Python
18 lines
332 B
Python
import pytest
|
|
|
|
import pickle
|
|
import io
|
|
|
|
|
|
from spacy.morphology import Morphology
|
|
from spacy.lemmatizer import Lemmatizer
|
|
from spacy.strings import StringStore
|
|
|
|
@pytest.mark.xfail
|
|
def test_pickle():
|
|
morphology = Morphology(StringStore(), {}, Lemmatizer({}, {}, {}))
|
|
|
|
file_ = io.BytesIO()
|
|
pickle.dump(morphology, file_)
|
|
|