Open zafercavdar opened 4 years ago
After saving and loading with pickle, file descriptors are not closed.
... from corextopic import corextopic corex_model = corextopic.Corex(n_hidden=10, verbose=True, max_iter=200) corex_model.fit(corpus, words=words) path = "path/to/corex_model.pkl" corex_model.save(path, ensure_compatibility=False) > ResourceWarning: unclosed file <_io.BufferedWriter name='path/to/corex_model.pkl'> loaded_model = corextopic.load(path) > ResourceWarning: unclosed file <_io.BufferedReader name='path/to/corex_model.pkl'>
Definition
After saving and loading with pickle, file descriptors are not closed.
How to reproduce