Problem initializing the German coreNLP
RainerFreudenthaler opened this issue · 1 comments
RainerFreudenthaler commented
I'm trying to initialize the German version of coreNLP using your package.
My code looks like this:
install.packages('cleanNLP')
install.packages('RCurl')
require(RCurl)
require(cleanNLP)
cnlp_download_corenlp()
cnlp_download_corenlp(type = 'de',
url = 'http://nlp.stanford.edu/software/stanford-german-corenlp-2018-10-05-models.jar',
url_core = FALSE, force = TRUE)
cnlp_init_corenlp(language = 'de')
When I run the code, I get the following error message:
Error in rJava::.jnew("edu.stanford.nlp.pipeline.StanfordCoreNLP", prop) :
edu.stanford.nlp.io.RuntimeIOException: Error while loading a tagger model (probably missing model file)
Do you have any suggestions what the problem could be?
Best,
Rainer
Edit: Forgot to enter my Sessioninfo:
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
locale:
[1] LC_COLLATE=English_Germany.1252 LC_CTYPE=English_Germany.1252 LC_MONETARY=English_Germany.1252
[4] LC_NUMERIC=C LC_TIME=English_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] spacyr_1.2 cleanNLP_2.3.0 RCurl_1.95-4.12 bitops_1.0-6
loaded via a namespace (and not attached):
[1] compiler_3.6.1 Matrix_1.2-17 tools_3.6.1 Rcpp_1.0.2 reticulate_1.13 grid_3.6.1
[7] data.table_1.12.2 jsonlite_1.6 rJava_0.9-11 lattice_0.20-38
statsmaths commented
Yes, I think that this might be solved with the most recent dev version of cleanNLP (looks
like you have version 2.3.0). If you re-install with:
devtools::install_github("statsmaths/cleanNLP")
That should give you you the newer version.