我有一些志愿论文写作,格式如下:
volunteer_names, essay
["emi", "jenne", "john"], [["lets", "protect", "nature"], ["what", "is", "nature"], ["nature", "humans", "earth"]]
["jenne", "li"], [["lets", "manage", "waste"]]
["emi", "li", "jim"], [["python", "is", "cool"]]
...
...
...
我想根据他们的论文写作来识别相似的用户。我觉得 word2vec 更适合这样的问题。但是,由于我也想在模型中嵌入用户名,我不知道该怎么做。我在互联网上找到的示例仅使用单词(参见示例代码)。
import gensim
sentences = [['first', 'sentence'], ['second', 'sentence']]
# train word2vec on the two sentences
model = gensim.models.Word2Vec(sentences, min_count=1)
在这种情况下,我想知道在 word2vec 中是否有特殊的方法可以做到这一点,或者我可以简单地将用户名视为输入模型的单词。请让我知道您对此的看法。
如果需要,我很乐意提供更多详细信息。
素胚勾勒不出你
相关分类