Closed mohammad1234 closed 7 years ago
The out_path
is actually a directory that is created inside the wordrank directory to save all the meta data and embedding dumps. It has to be at first level in wordrank directory for handling further file creations/processing, ex. it can be word_rank_out/
, not /mnt/word_rank_out/
(hence results in the reported error).
I think out_path
is a misleading parameter name, out_name
could be a better option to indicate just the directory name input. I'll send the PR for this
Fixed in #1332
I've been trying to train a wordrank model with the provided text8 data with the workrank package using gensim wrapper, but getting
No such file or directory
error, which is unusual cause I've verified my wordrank installation by running the demo script provided with wordrank package which runs without any issue. Also i checked the permission on the wordrank installation directory, which should not be any problem.Is that a bug in the gensim package or something i'm missing here ?
test_model = Wordrank.train(wr_path = '/mnt/wordrank', corpus_file = '/mnt/wordrank/scripts/text8', out_path = '/mnt/word_rank_out/', iter=6)