def resource_similarity_score_via_exact_word_match_1(need_res_set,offer_tweet_list):
if len(need_res_set)==0:
return 0
offer_res_set=set()
for i in offer_tweet_list:
for j in i.split():
if j not in out_stem_list:
offer_res_set.add(stemmer.stem(j.lower()))
return(len(offer_res_set&need_res_set)/len(need_res_set))
process_both.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录