Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

srl接口运行不结束 #41

Open
wenyiwener opened this issue Aug 13, 2018 · 3 comments
Open

srl接口运行不结束 #41

wenyiwener opened this issue Aug 13, 2018 · 3 comments

Comments

@wenyiwener
Copy link

wenyiwener commented Aug 13, 2018

static SRL srl_a=new SRL();
srl_a.srl(words, pos, ners, heads_arcs, arcs, srls); 该行一直运行,不结束,不报错
其中参数words, pos, ners, heads_arcs, arcs已有值。
srls是待返回结果。定义如下
List<Pair<Integer, List<Pair<String, Pair<Integer, Integer>>>>> srls=new ArrayList<Pair<Integer, List<Pair<String, Pair<Integer, Integer>>>>>();

@liu946
Copy link
Collaborator

liu946 commented Aug 14, 2018

这是两个接口之间协议出现了一点问题,srl部分弧root序号为-1,而句法输出为0,索引错位了1,需要手动改一下。

@liu946
Copy link
Collaborator

liu946 commented Aug 14, 2018

会在之后的版本中修正该问题。

@BigPig-LittleTail
Copy link

@liu946 老师,请问手动更改使ltp4j的SRL的api正常工作需要进行哪些操作?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants