Commit 00e153af authored by 赵威's avatar 赵威

get answer from es

parent 14aaeed2
......@@ -38,8 +38,9 @@ if __name__ == "__main__":
# print(cos_sim(sen1_em, sen2_em))
for item in get_answer_info_from_es(["id", "content", "content_level"]):
for item in get_answer_info_from_es(["id", "answer", "content_level", "desc"]):
id = item["_id"]
content = item["_source"]["content"]
content = item["_source"]["answer"]
content_level = item["_source"]["content_level"]
print(id, content_level, content)
desc = item["_source"]["desc"]
print(id, content_level, content, desc)
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