Commit 43256672 authored by 赵威's avatar 赵威

update format

parent 77e6719a
......@@ -53,8 +53,7 @@ def word_similarity(word):
try:
return WORD2VEC_MODEL.wv.most_similar(word)
except Exception as e:
send_msg_to_dingtalk(str(e) + "\n" + str(traceback.format_exc()))
print(traceback.format_exc())
send_msg_to_dingtalk(str(traceback.format_exc()))
return []
......@@ -113,8 +112,7 @@ def clicked_tractate_ids_item2vec_model(id, n=5):
try:
return TRACTATE_CLICK_IDS_MODEL.wv.most_similar(id, topn=n)
except Exception as e:
send_msg_to_dingtalk(str(e) + "\n" + str(traceback.format_exc()))
print(traceback.format_exc())
send_msg_to_dingtalk(str(traceback.format_exc()))
return []
......
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