MIND News Recommendation Competition Forum

Go back to competition Back to thread list Post in this thread

> How to read the *.vec files

Hi,

I tried to read the *.vec files. And I used these following codes :
import gensim
word2vec = gensim.models.word2vec.Word2Vec.load("../input/MINDsmall_dev/relation_embedding.vec").wv
word2vec

But I got the errors: UnpicklingError: A load persistent id instruction was encountered, but no persistent_load function was specified. I don't know what's wrong with it. Any suggestions ?

Posted by: qinhui99 @ Aug. 1, 2020, 9:05 a.m.

I think you can regard it as strings and process them manually (e.g., split and convert to arrays).

Posted by: MIND_Organizer @ Aug. 1, 2020, 3:01 p.m.
Post in this thread