情绪分析错误“模块‘nltk.tokenize’没有属性‘api’”

问题描述

我尝试在 Python 中运行 Twitter 情绪分析,但遇到此错误

module 'nltk.tokenize' has no attribute 'api'

只是想知道您是否可以让我知道我该如何调试?

我在最后添加代码。 (代码来源:https://towardsdatascience.com/step-by-step-twitter-sentiment-analysis-in-python-d6f650ade58d#_=_

https://gist.github.com/nikcheh/ed2bb28531c7d4546497e4c23e733c8e/revisions

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)