2017-04-21 2 views
0

Java에서 Jfasttext 라이브러리를 사용하여 단어에 대한 벡터를 얻기 위해 고속 텍스트를 사용하면 오류가 발생합니다. 오류는코어 덤프를 작성하지 못했습니다. Java Runtime Environment에서 치명적인 오류가 발생했습니다.

 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 

답변

1

입니다. 아직 모델을로드하지 않았기 때문에 오류가 발생했습니다.

훈련 된 모델 here을로드하는 방법을 확인할 수 있습니다. 여기에서 train supervised models 또는 unsupervised models의 방법을 살펴볼 수도 있습니다.

기능 loadModel()이 모든 모델에서 작동합니다.

관련 문제