process_both.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:disaster-mitigation 作者: varun-manjunath 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号