【发布时间】:2016-05-01 04:54:28
【问题描述】:
coreNLP 是一个 R 包,用于连接 Standford 的 CoreNLP Java 库。必须执行的第一行(在使用library() 命令加载适当的包之后)是initCoreNLP()。不幸的是,这会导致以下错误:
从 edu/stanford/nlp/models/ner/english.conll.4class.distim.crf.ser.gz 加载分类器 ... rJava::.jnew("edu.stanford.nlp.pipeline.StanfordCoreNLP) 中的错误“,基本名称(路径)): java.lang.OutOfMemoryError: 超出 GC 开销限制
注意,这与此处列出的问题相同:(initCoreNLP() method call from the Stanford's R coreNLP package throws error)。但是,在这种情况下,OP 发现重新启动他的机器会使问题消失。这对我来说不是;即使在重新启动后我仍然会遇到这种情况。
有没有其他人遇到过这个问题并可以提供解决方案或建议?
提前致谢, 危险品
配置细节:
R 版本 3.2.3 (2015-12-10)
rJava 0.9-7 版
coreNLP 0.4-1 版
机器:8GB RAM 的 Win 7
【问题讨论】:
标签: r stanford-nlp rjava