Commit 8b6e6b02 authored by 赵威's avatar 赵威

add interface

parent 865d27eb
......@@ -35,8 +35,8 @@ def w2v_train(f_name, model_output_name):
@bind("strategy_embedding/word_vector/word_similarity")
def word_similarity():
pass
def word_similarity(word):
return WORD2VEC_MODEL.wv.most_similar(word)
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