DownloadCoreNLP() in R on Mac is downloading an old version of CoreNLP so initCoreNLP is not working
evabonning opened this issue · 3 comments
I am trying to use the CoreNLP library in R on a Mac computer with an M1 chip. I have installed the coreNLP package and downloaded the CoreNLP library, but when I try to initialize the CoreNLP library by running initCoreNLP(), I encounter the following error message:
Error in initCoreNLP() :
edu.stanford.nlp.util.ReflectionLoading$ReflectionLoadingException: Error creating edu.stanford.nlp.time.TimeExpressionExtractorImpl
I have tried setting the corenlp.path option to the path of the directory where I installed the latest version of the CoreNLP library, but this did not resolve the issue. I am looking for help in understanding and resolving this error. I have pasted more detailed code input and output below.
install.packages("coreNLP")
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-arm64/contrib/4.3/coreNLP_0.4-3.tgz'
Content type 'application/x-gzip' length 68316 bytes (66 KB)
==================================================
downloaded 66 KB
The downloaded binary packages are in
/var/folders/t_/3g8v7g_j0419np2tqm8x4xh40000gn/T//RtmpUQH6Mo/downloaded_packages
downloadCoreNLP()
trying URL 'http://nlp.stanford.edu/software//stanford-corenlp-full-2015-12-09.zip'
Content type 'application/zip' length 403157240 bytes (384.5 MB)
==================================================
downloaded 384.5 MB
[1] 0
initCoreNLP()
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Searching for resource: StanfordCoreNLP.properties
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize
[main] INFO edu.stanford.nlp.pipeline.TokenizerAnnotator - TokenizerAnnotator: No tokenizer type provided. Defaulting to PTBTokenizer.
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator pos
Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0.4 sec].
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator lemma
[main] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ner
Loading classifier from edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz ... done [0.7 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz ... done [0.3 sec].
Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... done [0.4 sec].
[main] INFO edu.stanford.nlp.time.JollyDayHolidays - Initializing JollyDayHoliday for SUTime from classpath edu/stanford/nlp/models/sutime/jollyday/Holidays_sutime.xml as sutime.binder.1.
Error in initCoreNLP() :
edu.stanford.nlp.util.ReflectionLoading$ReflectionLoadingException: Error creating edu.stanford.nlp.time.TimeExpressionExtractorImpl