FAQrobot
FAQrobot copied to clipboard
utils.py 中 similarity 函数的词重叠率计算问题
你好,utils.py 中 79~81 行的代码:
if method == 'simple':
# 词重叠率
return len(set(a) & set(a)) / len(set(a))
这里是不是应该为: len(set(a) & set(b)) / len(set(a))