download_core_nlp

0th

Percentile

Download java files needed for CoreNLP

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.

Usage
download_core_nlp(type = c("default", "base", "en", "fr", "de", "es"),
  output_loc, url = NULL, url_core = TRUE, force = FALSE)
Arguments
type

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.

output_loc

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.

url

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.

url_core

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).

force

logical. Should files be downloaded if they appear to already exist?

Aliases
  • download_core_nlp
Examples
# NOT RUN {
download_core_nlp()
download_core_nlp(type="spanish")
# }
Documentation reproduced from package cleanNLP, version 1.10.0, License: LGPL-2

Community examples

ksmvsn at Jul 27, 2017 cleanNLP v1.10.0

##downloading default models ```r download_core_nlp("default") ```