当我使用 java 中的 Jfasttext 库使用 fasttext 获取单词 vector 时出现错误。错误是
A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f412c606444, pid=14379, tid=139916342187776
#
# JRE version: OpenJDK Runtime Environment (7.0_121) (build 1.7.0_121-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.121-b00 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.8
# Distribution: Ubuntu 14.04 LTS, package 7u121-2.6.8-1ubuntu0.14.04.3
# Problematic frame:
# C [libjniFastTextWrapper.so+0x1e444]
FastTextWrapper::FastTextApi::getVector(std::string const&)+0x24
#
# 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
最佳答案
发生错误是因为您尚未加载模型。
您可以了解如何加载经过训练的模型here 。您还可以查看如何 train supervised models或unsupervised models 。
函数loadModel()
适用于所有这些模型。
关于java - 无法写入核心转储,Java 运行时环境检测到 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43548369/