Download spaCy language models
spacy_download_langmodel(lang_models = "en_core_web_sm", force = FALSE)
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.
ignore if spaCy/the lang_models is already present and install it anyway.
Invisibly returns the installation log.
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")
}