首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有nlpnet的SRL不适用于一些句子。

带有nlpnet的SRL不适用于一些句子。
EN

Stack Overflow用户
提问于 2014-04-21 14:46:17
回答 1查看 425关注 0票数 0

我安装了nlpnet并下载了数据。但它只适用于一些句子。我使用Ubuntu13.04 32位和Python2.7.4与virtualenv。

我在这里张贴了两个例子,第一个似乎有效,第二个不:

示例1(似乎有效):

代码语言:javascript
复制
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年实例

代码语言:javascript
复制
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:我也是报道了这一问题,但想看看有没有人帮我修好它。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-04-30 11:18:46

这个包的作者erickrf,回答 it:

这里的问题是,来自http://nilc.icmc.usp.br/nilc/download/nlpnet-data.zip的受过训练的模型是为葡萄牙语训练的。用英语是行不通的。 当您得到一个空的arg_structures列表时,这意味着网络没有将任何令牌识别为谓词。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23199709

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档