When an error reads, "FileNotFoundError: [Errno 2] No such file or directory: '/mnt/user/gensim-data/glove-twitter-25/glove-twitter-25.gz'", the 1st thing I'd check is: are you sure the file /mnt/user/gensim-data/glove-twitter-25/glove-twitter-25.gz
exist?s
But more generally, the gensim.downloader
:
exists chiefly to make it easier to fetch remote resources, & was never envisioned to point at local paths, for which "downloading" is a misnomer
is probably a bad idea anyway, for reasons I've presented to the Gensim project in a project Github issue
I think you can and should find the original source of such files, and download the raw data yourself, without any mysterious/unversioned code-shims that weren't in the software release.
You'll then have a better idea where the files land, what formats they're in, and what library routines can further massage them into the formats you need.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…