Commit 59b2c532 authored by 赵威's avatar 赵威

get result

parent 7f6522ef
......@@ -70,6 +70,6 @@ if __name__ == "__main__":
id = tmp_tuple[0]
emb = np.array(embedding_dict[id]).astype("float32")
print(emb)
D, I = index2.search(emb)
D, I = index2.search(emb, 10)
res = I.tolist()
print(res, "\n")
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