I'm sorry - I forgot...
Of course I loaded the R packages before trying function sentDetect() with
> library(openNLP)
> library(openNLPmodels.de)
Thanks again!
Sascha W.
Am 05.12.2010 23:30, schrieb Sascha Wolfer:
Dear list,
after searching for several hours in documentations and the web and
stuff, I didn't find any solution for my problem, so here it goes...
I want to use openNLP with R, using the package "openNLP" and the model
for german. So I did the following in R:
> install.packages("openNLP")
> install.packages("openNLPmodels.de", type = "source", repos =
"http://datacube.wu.ac.at")
Everything seems to be installed correctly. So I tried this simple example:
> s <- "Dies ist ein Satz. Und hier ist noch einer."
> sentDetect(s, model = "openNLPmodels.de")
Now here goes the error I get when doing this:
Fehler in .jnew("opennlp/maxent/io/SuffixSensitiveGISModelReader",
.jnew("java.io.File", :
java.io.FileNotFoundException: openNLPmodels.de (Das System kann die
angegebene Datei nicht finden)
Translation:
Error in .jnew("opennlp/maxent/io/SuffixSensitiveGISModelReader",
.jnew("java.io.File", :
java.io.FileNotFoundException: openNLPmodels.de (System cannot find the
specified file)
Does anyone have an idea what the problem is? Perhaps I'm doing
something awefully wrong here... do I have to install more than the R
package(s) to get this running in R?
I'm on Win 7 with R 2.12.0, but I get exactly the same error on my Mac.
Thanks in advance,
Sascha W.