spaCy/spacy/tests/parser/test_parser_pickle.py
2015-10-26 00:07:31 +11:00

18 lines
219 B
Python

import pytest
import pickle
import cloudpickle
import io
@pytest.mark.models
def test_pickle(EN):
file_ = io.BytesIO()
cloudpickle.dump(EN.parser, file_)
file_.seek(0)
loaded = pickle.load(file_)