java - 无法写入核心转储,Java 运行时环境检测到 fatal error

标签 java machine-learning nlp fasttext

当我使用 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 modelsunsupervised models

函数loadModel()适用于所有这些模型。

关于java - 无法写入核心转储,Java 运行时环境检测到 fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43548369/

相关文章:

java - JSOUP 获取无序列表

java - 是否有修复 "Bitmap too Large to be uploaded into a texture"的 BitmapFactory 分辨率?

algorithm - 为什么过度拟合给出了错误的假设函数

machine-learning - Keras 中的 LSTM 是否支持动态句子长度?

python - 如何使用gensim wikicorpus获取带有标点符号的维基百科语料库文本?

nlp - 如何评估Word2Vec的性能?

java - 触摸屏L&F

java - 抽象类与抽象类Java中的【接口(interface)+继承】

python - 在没有 Torchsample 的 Pytorch 中实现提前停止

algorithm - 如何构造反向btree?