Commit 89407ab5 authored by 赵威's avatar 赵威

get resurt

parent 59b2c532
...@@ -68,7 +68,7 @@ if __name__ == "__main__": ...@@ -68,7 +68,7 @@ if __name__ == "__main__":
print("total index: " + str(index2.ntotal)) print("total index: " + str(index2.ntotal))
id = tmp_tuple[0] id = tmp_tuple[0]
emb = np.array(embedding_dict[id]).astype("float32") emb = np.array([embedding_dict[id]]).astype("float32")
print(emb) print(emb)
D, I = index2.search(emb, 10) D, I = index2.search(emb, 10)
res = I.tolist() res = I.tolist()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment