GateNLP / gate-lf-pytorch-json

PyTorch wrapper for the LearningFramework GATE plugin
Apache License 2.0
1 stars 2 forks source link

Delegate pickling details for the dataset instance to the Dataset class #8

Open johann-petrak opened 6 years ago

johann-petrak commented 6 years ago

Currently the dataset is not getting pickled but re-created and this is implemented using the getstate/setstate methods. Instead, that kind of special handling should be moved to the dataset class instead.