Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 尝试导入NLTK模块时发生导入错误_Python_Nltk - Fatal编程技术网

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
参考: