我已经下面就本link代码以找到输入的X和Y之间的相似性度量: def similarity(X, Y, method):
X = np.mat(X)
Y = np.mat(Y)
N1, M = np.shape(X)
N2, M = np.shape(Y)
method = method[:3].lower()
if method==
的文档相似性,我使用TF-IDF与余弦相似度计算描述 输入字符串: 3/4x1/2x3/4 blk mi tee
下面是句子其中我需要找到类似的输入字符串句子 smith-cooper® 33rt1 reducing pipe tee 3/4 x 1/2 x 3/4 in npt 150 lb malleable iron black
smith-cooper®