摘要: 1 def cal_sim2(A,B): 2 ''' 3 A :query [1,2] 4 B: answers [[1,2],[3,5]] 5 ''' 6 need_norm=False 7 A = np.array(A) 8 B = np.array(B) 9 A=A/np.linalg.norm(A... 阅读全文
posted @ 2018-12-07 16:03 乐乐章 阅读(779) 评论(0) 推荐(0) 编辑