rth / vtext

Simple NLP in Rust with Python bindings
Apache License 2.0
146 stars 11 forks source link

Make estimators picklables #25

Open rth opened 5 years ago

rth commented 5 years ago

Currently, Python classes / functions generated with Pyo3 are not picklable (https://github.com/PyO3/pyo3/issues/100) which makes their use problematic in typical data science workflows (e.g. with joblib parallel or in scikit-learn pipelines).

Implementing __getstate__, __setstate__ methods is probably necessary to make it work.