📜  python get cos sim - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:24.947000             🧑  作者: Mango
代码示例1
from numpy import dot
from numpy.linalg import norm
cos_sim = dot(a, b)/(norm(a)*norm(b))