当前位置: 首页 > 工具软件 > automaton > 使用案例 >

AttributeError: module ‘ahocorasick‘ has no attribute ‘Automaton‘解决

邵兴庆
2023-12-01

在运行中科院软件所刘老师的代码时出现的小bug,感谢!

问题:AttributeError: module ‘ahocorasick’ has no attribute ‘Automaton’

原因:导入了ahocorasick-python这个包,把他删了,然后再重新导入pyshocorasick

下载地址:https://pypi.org/project/pyahocorasick/

步骤:ahocorasick安装

 类似资料: