We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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'>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Definition
After saving and loading with pickle, file descriptors are not closed.
How to reproduce
The text was updated successfully, but these errors were encountered: