mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
18 lines
327 B
Python
18 lines
327 B
Python
|
import pytest
|
||
|
|
||
|
import pickle
|
||
|
import StringIO
|
||
|
|
||
|
|
||
|
from spacy.morphology import Morphology
|
||
|
from spacy.lemmatizer import Lemmatizer
|
||
|
from spacy.strings import StringStore
|
||
|
|
||
|
|
||
|
def test_pickle():
|
||
|
morphology = Morphology(StringStore(), {}, Lemmatizer({}, {}, {}))
|
||
|
|
||
|
file_ = StringIO.StringIO()
|
||
|
pickle.dump(morphology, file_)
|
||
|
|