小编Son*_*pta的帖子

如何使用nlp java提取主题动词对象

如何在java中使用NLP提取SVO,我是nlp.i的新手,目前正在使用opennlp.但是如何在java中使用java句子中的特定句子.

LexicalizedParser lp = **new LexicalizedParser("englishPCFG.ser.gz");**
String[] sent = { "This", "is", "an", "easy", "sentence", "." };
Tree parse = (Tree) lp.apply(Arrays.asList(sent));
parse.pennPrint();
System.out.println();
TreePrint tp = new TreePrint("penn,typedDependenciesCollapsed");
tp.print(parse);
Run Code Online (Sandbox Code Playgroud)

在新的LexicalizedParser("englishPCFG.ser.gz")中获取编译错误;**构造函数LexicalizedParser(String)未定义

nlp

5
推荐指数
1
解决办法
5087
查看次数

标签 统计

nlp ×1