我正在使用 Windows 8,并在 Eclipse 中使用 pyDev 运行 python。
我从以下站点安装了 Stanford coreNLP(python 版本): https ://github.com/relwell/stanford-corenlp-python
当我尝试导入 corenlp 时,我收到以下错误消息。
Traceback (most recent call last):
File "C:\Users\Ghantauke\workspace\PythonTest2\test.py", line 1, in <module>
import corenlp
File "C:\Python27\lib\site-packages\corenlp\__init__.py", line 13, in <module>
from corenlp import StanfordCoreNLP, ParserError, TimeoutError, ProcessError
File "C:\Python27\lib\site-packages\corenlp\corenlp.py", line 28, in <module>
import pexpect
File "C:\Python27\lib\site-packages\pexpect.py", line 85, in <module>
support it. Pexpect is intended for UNIX-like operating systems.""")
ImportError: No module named resource
A critical module was not found. Probably this operating system does not
support it. Pexpect is intended for UNIX-like operating systems.
这是否意味着它的 python 分支在 Windows 中不起作用?有什么办法可以让它在windows中工作吗?
如果没有,那么您能否建议我可以在 Windows 中使用的其他替代方案。我只需要解析器。