官方教程 参数参考 参考 1.加载词向量: 代码: w2v_model = gensim.models.KeyedVectors.load_word2vec_format('glove.6B.50d.txt', binary=False, encoding='utf-8') word2id = dict(zip(w2v_model.wv.index2word, range(len(w2v_model.wv.index2word)))) id2word = { idx: word for idx, word in enumerate