Hello all,
model = gensim.models.wrappers.Wordrank.train(‘C:/Users/dummy/wordrank’, corpus_file=MY_CORPUS_STR, out_name=’wr_model’)
Then I keep to have this error:
File "C:\Users\...\Anaconda3\lib\site-packages\gensim\models\wrappers\wordrank.py", line 95, in train
copyfile(corpus_file, os.path.join(meta_dir, corpus_file.split('/')[-1]))
File "C:\Users\...\Anaconda3\lib\shutil.py", line 103, in copyfile
if _samefile(src, dst):
File "C:\Users\...\Anaconda3\lib\shutil.py", line 88, in _samefile
return os.path.samefile(src, dst)
File "C:\Users\...l\Anaconda3\lib\genericpath.py", line 90, in samefile
s1 = os.stat(f1)
ValueError: stat: path too long for Windows
I think path like ‘C:/Users/dummy/wordrank’ should not be a long one.... But I keep to have this error and cannot find any solution online. Could you guys help me with this?
Is there a way to train WordRank embeddings with similar codes like Word2Vec, Doc2Vec in gensim?
I am using win 10, spyder 3.2.6, Python 3.5, latest gensim library.
Thank you all for help!