name_score = -beta3 * fuzz.ratio(name, dete_tokens_list[i]) # dete_tokens_list = 问题的文字形式
if (head_id, name) in tuple_topic: # 如果预测的主语是宾语,则减少分数
name_score -= .18
if reach_dic.get(head_id) is not None: # 排除掉HEDnon的主语
for pred_id in reach_dic[head_id]: # reach_dic[head_id] = pred_id
sassssssssss
标签:AAAAAAAAAA,head,name,dete,reach,dic,id From: https://www.cnblogs.com/harlanlu/p/16631816.html