0

希望你一切都好。

我将 Freeling 库用于我的 Java 硕士学位论文,因此使用 JFreeling API。虽然它本身运行良好,但我需要将它与 ExtJWNL 库结合起来以提取下义词和其他语义关系。自从引入 JWNL 库后,每次都向我抛出一个 SIGSEGV 错误:


 *A fatal error has been detected by the Java Runtime Environment:*

 *SIGSEGV (0xb) at pc=0x00007f9035e9d308, pid=4378, tid=0x00007f9072ba7700*

 JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
 Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode linux-amd64 compressed oops)
 Problematic frame:
 C [libJfreeling.so+0x14d308] std::_Rb_tree, std::less, std::allocator >::_M_begin() const+0xc

 Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

 An error report file with more information is saved as:
 /home/ayto/IdeaProjects/Lexical/hs_err_pid4378.log
Compiled method (nm) 98787 953 n 0 edu.upc.Jfreeling.JfreelingJNI::Word_getSensesString__SWIG_1 (native)
total in heap [0x00007f905c4f4790,0x00007f905c4f4b20] = 912
relocation [0x00007f905c4f48b8,0x00007f905c4f4900] = 72
main code [0x00007f905c4f4900,0x00007f905c4f4b18] = 536
oops [0x00007f905c4f4b18,0x00007f905c4f4b20] = 8
Compiled method (c1) 98787 862 3 sun.nio.cs.UTF_8$Encoder::encodeLoop (28 bytes)
total in heap [0x00007f905c4a5790,0x00007f905c4a5fb8] = 2088
relocation [0x00007f905c4a58b8,0x00007f905c4a5928] = 112
main code [0x00007f905c4a5940,0x00007f905c4a5dc0] = 1152
stub code [0x00007f905c4a5dc0,0x00007f905c4a5e78] = 184
metadata [0x00007f905c4a5e78,0x00007f905c4a5e90] = 24
scopes data [0x00007f905c4a5e90,0x00007f905c4a5f08] = 120
scopes pcs [0x00007f905c4a5f08,0x00007f905c4a5f98] = 144
dependencies [0x00007f905c4a5f98,0x00007f905c4a5fa0] = 8
nul chk table [0x00007f905c4a5fa0,0x00007f905c4a5fb8] = 24

我正在使用两个文档数据库,一个大的(约 7200 个文档)和一个小样本(20 个)用于测试。我使用了四个语义字段:上位词、下位词、全音词和分词。运行程序试图在运行中提取每个,在测试数据库上,除了下位词外,所有的都正常工作。无论选择的深度。在大型主数据库上,它们都不起作用。

这里可能是什么问题?我已经自己摸索了一个月了,还没有取得任何进展,欢迎任何帮助,谢谢。

INFOS:使用 Ubuntu 并使用 Netbeans 进行编码(也尝试将 IDE 更改为 IntelliJ)。这是 Java 代码: https ://justpaste.it/2k0kb

4

0 回答 0