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

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

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

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

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

步骤:ahocorasick安装

你可能感兴趣的:(python,neo4j,pycharm,ai)