package src;
import java.util.Properties;
import edu.stanford.nlp.pipeline.StanfordCoreNLP;
public class NLPTest {
public static void main(String[] args){
Properties props = new Properties();
props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref");
StanfordCoreNLP coreNLP = new StanfordCoreNLP(props);
}
}
このサンプル コードを Eclipse で実行しましたが、次のエラーが表示されます。 .lang.OutOfMemoryError: Java ヒープ領域
Command Propmt から Stanford CoreNLP を実行すると、すべてが完全に機能します。誰でも解決策を教えてもらえますか? Eclipseへのメモリ割り当てに関連していますか?