HIT-SCIR / ltp4j

ltp4j: Language Technology Platform For Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] at ltp4j label:bug

RominYue opened this issue · comments

测试数据:"我是**xx大学的。\n一名学生。"
测试流程: Split_sentences -> cws -> pos -> ner
测试结果:其他流程都没问题,但是词性标注有问题,错误如下

本机测试的错误信息,ubuntu14.04, 32位, g++ 4.8.2

我是**人民大学的。
一名学生。
我是**人民大学的。
[我, 是, **, 人民, 大学, 的, 。]
[r, v, ns, n, n, u, wp]
[O, O, B-Ni, I-Ni, E-Ni, O, O]

[]
[]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x86f168ee, pid=8015, tid=3061234496
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) Server VM (25.60-b23 mixed mode linux-x86 )
# Problematic frame:
# C  [libner.so.0.0.2+0x68ee]*** Error in `java': malloc(): corrupted unsorted chunks 2: 0x872ffbc8 ***
[1]    8015 abort (core dumped)  java -cp .:/home/yomin/workspace/test/lib/ltp4j.jar test.welcome

服务器测试错误,ubuntu14.04, 64位, g++ 4.8.5

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff1490b9572, pid=5665, tid=140676095026944
#
# JRE version: Java(TM) SE Runtime Environment (8.0_73-b02) (build 1.8.0_73-b02)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.73-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libner.so.0.0.2+0x8572]  __ltp_dll_ner_wrapper::recognize(std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<std::string, std::allocator<std::string> >&)+0x1112
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

貌似是libner.so的问题,然后用命令ltp_test去测试貌似没问题。

复现不出这个错误啊…

image

我是**人民大学的。\n一名学生。
有个\n的换行符。貌似上图的测试里没有?

commented

similar problem
HIT-SCIR/ltp#181

我遇到了同样的问题,想请教您是怎么解决的?