Python 尝试导入NLTK模块时发生导入错误
我正在尝试从以下网站实现一个选区解析器。Python 尝试导入NLTK模块时发生导入错误,python,nltk,Python,Nltk,我正在尝试从以下网站实现一个选区解析器。 从nltk.parse.corenlpnlltk.pa导入CoreNLPParser 当我尝试上述步骤时,我得到了这个错误 回溯(最近一次呼叫最后一次): 文件“3main.py”,第2行,在 从nltk.parse.corenlpnltk.pa导入CoreNLPParser 导入错误:没有名为corenlpnltk.pa的模块导入错误 使用以下命令: from nltk.parse.corenlp import CoreNLPParser 参考:导
从nltk.parse.corenlpnlltk.pa导入CoreNLPParser
当我尝试上述步骤时,我得到了这个错误
回溯(最近一次呼叫最后一次):
文件“3main.py”,第2行,在
从nltk.parse.corenlpnltk.pa导入CoreNLPParser
导入错误:没有名为corenlpnltk.pa的模块导入错误
使用以下命令:
from nltk.parse.corenlp import CoreNLPParser
参考:导入错误
使用以下命令:
from nltk.parse.corenlp import CoreNLPParser
参考: