model.most_similar

model.most_similar(['girl', 'father'], ['boy'], topn=3)

[('mother', 0.61849487), ('wife', 0.57972813), ('daughter', 0.56296098)]

 

model.most_similar(positive=['woman', 'king'], negative=['man'])

#输出[('queen', 0.50882536), ...]

你可能感兴趣的:(model.most_similar)