【发布时间】:2014-02-18 23:43:46
【问题描述】:
编辑: 让我知道什么是“rake 设置”?
这是我尝试让 Windows 7 上的 stanford 解析器与 python 一起工作的第二天。我偶然发现了这种安装方式——使用这个python接口——http://projects.csail.mit.edu/spatial/Stanford_Parser。
在安装说明中,他们需要使用 rake 文件设置,但是当我在 Windows 7 中使用命令提示符时,导航到 3rdParty/jpype 目录并输入“rake setup”时出现错误。
We developed a python interface to the Stanford Parser. It uses JPype
to create a Java virtual machine and convert between python and Java.
Most of the code is about getting the Stanford Dependencies, but it's
easy to add API to call any method on the parser.
JPype is included; you can set compile it by running "rake setup" in
3rdParty/jpype. The Stanford Parser can be downloaded and installed
by running "rake download; rake setup" in 3rdParty/stanford-parser".
Otherwise set the environment variable STANFORD_PARSER_HOME to the
location of the installed directory. It loads the grammar file from
the unzipped version, because the load is a few seconds faster. If
you haven't gunzipped the .ser file you will get an error.
To see how to use it, look at parser_test.py.
【问题讨论】:
-
这在我看来不像是一条错误消息。
-
如果您显示实际的错误消息可能会有所帮助...
-
命令提示符说:“rake”没有被识别。顺便问一下rake安装是什么?
-
我还是不能在这里发图片
标签: python python-2.7 nlp jython stanford-nlp