The cleanNLP package does not supply the raw java files provided by the Stanford NLP Group as they are quite large. This function downloads the libraries automatically, by default into the directory where the package was installed. These are not required for using the spaCy Python implementation.
cnlp_download_corenlp(type = c("default", "base", "en", "fr", "de", "es",
"ar", "zh"), output_loc, url = NULL, url_core = TRUE,
force = FALSE)
type of files to download. The base package Other jars include model files for French, German, and Spanish. These can be installed in addition to the base package. By default, the function downloads the base package and English model files.
a string showing where the files are to be downloaded. If missing, will try to download files into the directory where the package was original installed.
the url to try to download components from. Setting
to NULL uses the default location on the Stanford
NLP server, but you can set this manually by using
this option. It also allows for local files, but
note that the path must include the prefix
file://
. For details, see
download.file
.
if url
is not null, this flag indicates
whether the path given to url points to the core
nlp files (which are zipped) or
to model files (which are unzipped).
logical. Should files be downloaded if they appear to already exist?
# NOT RUN {
cnlp_download_corenlp()
cnlp_download_corenlp(type="spanish")
# }
Run the code above in your browser using DataLab