Commit 186fcd66 authored by 赵威's avatar 赵威

return empyt data

parent fa524138
......@@ -103,7 +103,10 @@ def save_clicked_tractate_ids_item2vec():
@bind("strategy_embedding/word_vector/tractate_item2vec")
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:
return []
if __name__ == "__main__":
......
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