Skip to content
New issue

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

Allow file-based *2vec training from compressed files #2159

Open
piskvorky opened this issue Aug 23, 2018 · 0 comments
Open

Allow file-based *2vec training from compressed files #2159

piskvorky opened this issue Aug 23, 2018 · 0 comments
Labels
difficulty medium Medium issue: required good gensim understanding & python skills performance Issue related to performance (in HW meaning) wishlist Feature request

Comments

@piskvorky
Copy link
Owner

piskvorky commented Aug 23, 2018

All Gensim algorithms allow the use of smart_open to read their input data, meaning the data can be .gz, .bz2, live on s3, etc.

However, the new code path for file-based training of *2vec model from #2127 only accepts .txt files. This is problematic, because the main purpose of this file-based training is to be run on very large datasets (where its superior speed actually matters). Keeping such large text files uncompressed is wasteful and sometimes even impossible.

Task: implement support for reading input from .gz compressed files (at least). bz2 would be nice too, but the "seeking into the middle of a file" by each worker may be problematic for that format, technically speaking.

@piskvorky piskvorky added wishlist Feature request difficulty medium Medium issue: required good gensim understanding & python skills performance Issue related to performance (in HW meaning) labels Aug 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty medium Medium issue: required good gensim understanding & python skills performance Issue related to performance (in HW meaning) wishlist Feature request
Projects
None yet
Development

No branches or pull requests

1 participant