stanza_download {stanza} | R Documentation |
Download Models
Description
Download pretrained NLP models. For more information about the parameters see https://stanfordnlp.github.io/stanza/download_models.html.
Usage
stanza_download(
language = "en",
model_dir = stanza_options("model_dir"),
package = "default",
processors = list(),
logging_level = "INFO",
resources_url = stanza_options("resources_url"),
resources_version = stanza_options("resources_version"),
model_url = stanza_options("model_url")
)
Arguments
language |
a character string giving the language (default is |
model_dir |
path to the directory for storing the for |
package |
a character string giving the package to be used (default is |
processors |
a character string or named list giving the processors to download models for.
If a string is provided it should provide the names of the desired processers as comma seperated
string, e.g., |
logging_level |
a character string giving the logging level (default is |
resources_url |
a character string giving the url to the |
resources_version |
a character string giving the version of the resources.
The default value is obtained from Python during the initiatlization and can be obtained
and changed by using |
model_url |
a character string giving the model url.
The default value is obtained from Python during the initiatlization and can be obtained
and changed by using |
Value
NULL
Examples
if (stanza_options("testing_level") >= 3L) {
stanza_initialize()
stanza_download("en")
}