我安装了nlpnet并下载了数据。但它只适用于一些句子。我使用Ubuntu13.04 32位和Python2.7.4与virtualenv。
我在这里张贴了两个例子,第一个似乎有效,第二个不:
示例1(似乎有效):
python nlpnet-tag.py srl /path/to/nlpnet-data/
This is the first sentence of the paragraph. This is the second sentence of the paragraph.
This is the first sentence of the paragraph .
sentence
A1: the paragraph
A0: first
V: sentence
This is the second sentence of the paragraph .
sentence
A1: the paragraph
A0: second
V: sentence例2(不起作用):
这句话取自CoNLL-2005年实例
python nlpnet-tag.py srl /path/to/nlpnet-data/
The $1.4 billion robot spacecraft faces a six-year journey to explore Jupiter and its 16 known moons.
The $ 1.4 billion robot spacecraft faces a six-year journey to explore Jupiter and its 16 known moons .我还从python和令牌化中进行了测试,但是在第二个调用arg_structures的示例中,返回一个空列表。
我错过了什么吗?如果您能够提供解决方案,即使不使用nlpnet,...will也会很感激。
谢谢
PS:我也是报道了这一问题,但想看看有没有人帮我修好它。
发布于 2014-04-30 11:18:46
这个包的作者erickrf,回答 it:
这里的问题是,来自http://nilc.icmc.usp.br/nilc/download/nlpnet-data.zip的受过训练的模型是为葡萄牙语训练的。用英语是行不通的。 当您得到一个空的arg_structures列表时,这意味着网络没有将任何令牌识别为谓词。
https://stackoverflow.com/questions/23199709
复制相似问题