Learn R Programming

spacyr (version 1.3.0)

spacy_download_langmodel: Download spaCy language models

Description

Download spaCy language models

Usage

spacy_download_langmodel(lang_models = "en_core_web_sm", force = FALSE)

Value

Invisibly returns the installation log.

Arguments

lang_models

character; language models to be installed. Defaults en_core_web_sm (English model). A vector of multiple model names can be used (e.g. c("en_core_web_sm", "de_core_news_sm")). A list of available language models and their names is available from the spaCy language models page.

force

ignore if spaCy/the lang_models is already present and install it anyway.

Examples

Run this code
if (FALSE) {
# install medium sized model
spacy_download_langmodel("en_core_web_md")

#' # install several models with spaCy
spacy_install(lang_models = c("en_core_web_sm", "de_core_news_sm"))

# install transformer based model
spacy_download_langmodel("en_core_web_trf")
}

Run the code above in your browser using DataLab