◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
无法调用 nltk 包
在 pycharm 中安装 nltk 后,但无法调用其功能怎么办?
问题详情:
import nltk for_test = 'xi is the chairman of china in the year 2013.' print(nltk.word_tokenize(for_test))
遇到了以下错误:
AttributeError: module 'nltk' has no attribute 'word_tokenize'
答案:
请查阅 nltk 官方文档。
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。