python - “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'
我不确定错误是什么,重复数据删除库有问题吗?
解决方案
推荐阅读
- java - 一个输入不起作用,而其余输入
- python-3.x - 如何使用 python 使用 list.txt 文件索引 tuple.txt 文件?
- c++ - 为什么更改字符串中的字符时没有输出?
- arduino - 仅打印 long long int 的最后 7 个数字
- mysql - 选择从 Y 行开始的 X 行
- hive - 将旧数据保留在分区配置单元表上
- django - Django modelformset_factory() 在视图中手动添加字段
- c# - 组合框 SelectedItem 未更改
- docker - 定期使用 LetsEncrypt 重新认证会产生负面影响吗?
- opensuse - 在 OpenSuse Leap 15.0 中配置 Oracle 监听器