Installing coreNLP in R

后端 未结 2 837
名媛妹妹
名媛妹妹 2020-12-21 10:58

I\'m following the instructions on this link to use coreNLP https://github.com/statsmaths/coreNLP

However, I found this error

> library(coreNLP)

         


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 11:34

    > install.packages('devtools')
    > devtools::install_github("statsmaths/coreNLP")
    > download.file("http://nlp.stanford.edu/software/stanford-corenlp-full-2015-01-29.zip", '/path/to/save/stanford-corenlp-full-2015-01-29.zip')
    > unzip('/path/to/save/stanford-corenlp-full-2015-01-29.zip')
    

    The instructions above from https://github.com/statsmaths/coreNLP works, possibly something went it was installing the library in R

    Re-run these command to reinstall the corenlp wrapper:

    > install.packages('devtools')
    > devtools::install_github("statsmaths/coreNLP")
    

    You should see this if the package is not corrupted:

    > devtools::install_github("statsmaths/coreNLP")
    Downloading GitHub repo statsmaths/coreNLP@master
    Installing coreNLP
    '/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore CMD  \
      INSTALL '/tmp/RtmpFS9LWl/devtools667a3cdbc084/statsmaths-coreNLP-3a667c6'  \
      --library='/home/expert/R/x86_64-pc-linux-gnu-library/3.2' --install-tests 
    
    * installing *source* package ‘coreNLP’ ...
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded
    * DONE (coreNLP)
    Reloading installed coreNLP
    

    Otherwise devtools should do a reinstall of the package.

提交回复
热议问题