check if two words are related to each other

前端 未结 3 1047
傲寒
傲寒 2020-12-18 09:56

I have two lists: one, the interests of the user; and second, the keywords about a book. I want to recommend the book to the user based on his given interests list. I am usi

3条回答
  •  生来不讨喜
    2020-12-18 10:07

    Thats because SequenceMatcher is based on edit distance or something alike. semantic similarity is more suitable for your case or hybrid of the two.

    take a look NLTK pack (code example) as you are using python and maybe this paper

    for people using c++ can check this open source project for reference

提交回复
热议问题