Learn R Programming

cleanNLP (version 2.3.0)

cnlp_init_spacy: Interface for initializing the spacy backend

Description

This function must be run before annotating text with the spacy backend. It sets the properties for the spacy engine and loads the file using the R to Python interface provided by reticulate.

Usage

cnlp_init_spacy(model_name = NULL, entity_flag = TRUE,
  vector_flag = FALSE)

Arguments

model_name

string giving the model name for the Python/spacy backend. Defaults to "en_core_web_sm" (English) if set to NULL.

entity_flag

boolean. Should named entities be identified.

vector_flag

boolean. Should word vectors be computed and saved.

Examples

Run this code
# NOT RUN {
cnlp_init_spacy(vector_flag = TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab