首页 > 解决方案 > “StaticDedupe”对象在我的 Python 脚本中没有属性“匹配”错误

问题描述

logger.info('Clustering.....')
clustered_dupes = deduper.match(data_d, threshold=0.5)
logger.info('Clustering completed')

logger.info(str(len(clustered_dupes)) +' duplicate sets')
clustered_dupes_list=list(clustered_dupes)

在上面运行我的 Python 脚本时,我遇到以下错误:

File "<ipython-input-2-338d12285e67>", line 307, in <module>
   clustered_dupes = deduper.match(data_d, threshold=0.5)

AttributeError: 'StaticDedupe' object has no attribute 'match'

我不确定错误是什么,重复数据删除库有问题吗?

标签: python

解决方案


推荐阅读