Patrick J Rogers
2010-Jul-14 18:55 UTC
[R] Java Heap Space Error while running kpca command
Hi All, I'm trying to run a kernel principal component analysis on a corpus with 89769 text documents. I'm using the kpca command from the kernlab package. Here is the code: output<-kpca(text, kernel=worddot(type="spectrum", length=1)) The problem is that when I run the kpca, it bails after only a few minutes, generating the following error: Error in .jcall(.jnew("opennlp/maxent/io/SuffixSensitiveGISModelReader", : java.lang.OutOfMemoryError: Java heap space The openNLP package is a dependency for the kernlab package. output<-kpca(text, kernel=worddot(type="spectrum", length=1)) I appreciate any help anyone can give! -- Patrick Rogers