FAQrobot icon indicating copy to clipboard operation
FAQrobot copied to clipboard

utils.py 中 similarity 函数的词重叠率计算问题

Open linuxr opened this issue 3 years ago • 0 comments

你好,utils.py 中 79~81 行的代码:

    if method == 'simple':
        # 词重叠率
        return len(set(a) & set(a)) / len(set(a))

这里是不是应该为: len(set(a) & set(b)) / len(set(a))

linuxr avatar Apr 08 '22 08:04 linuxr