我使用Gensim包装获得wordRank的嵌入(我下面的教程要做到这一点),如下所示。
from gensim.models.wrappers import Wordrank
model = Wordrank.train(wr_path = "models", corpus_file="proc_brown_corp.txt",
out_name= "wr_model")
model.save("wordrank")
model.save_word2vec_format("wordrank_in_word2vec.vec")
不过,我收到以下错误FileNotFoundError: [WinError 2] The system cannot find the file specified
。 我只是想知道我已经错了,因为一切看起来正确的给我。 请帮我。
此外,我想知道如果我保存模型的方式是正确的。 我看到Gensim提供的方法save_word2vec_format
。 什么是使用它,而无需直接使用原来的wordRank模型的优势在哪里?