中文语料库预处理时:
官网地址:https://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.Text8Corpus
报错:
AttributeError: The index2word attribute has been replaced by index_to_key since Gensim 4.0.0. See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4 AttributeError: 'Word2Vec' object has no attribute 'most_similar' AttributeError: 'Word2Vec' object has no attribute 'similarity'
新版参数修改: size :vector_size model.most_similar:model.wv.most_similar model.n_similarity:model.wv.similarity
标签:NLP,similarity,attribute,most,报错,集合,model,similar From: https://www.cnblogs.com/wex1022/p/16723997.html