Learn R Programming

cleanNLP (version 2.3.0)

cnlp_download_udpipe: Download model files needed for udpipe

Description

The cleanNLP package does not supply the model files required for using the udpipe backend. These files can be downloaded with this function. The models are saved, by default, in the location where the package is installed. They will be saved between R sessions. This function is called internally by cnlp_init_udpipe if a model is not available.

Usage

cnlp_download_udpipe(model_name = "english", model_loc = NULL)

Arguments

model_name

string giving the model namel. Defaults to "english" if NULL.

model_loc

where should be model be downloaded to. If set to NULL, will be downloaded in the location that the cleanNLP package is installed.

Examples

Run this code
# NOT RUN {
cnlp_download_core_nlp()
cnlp_download_core_nlp(type="spanish")
# }

Run the code above in your browser using DataLab