init_spaCy
From cleanNLP v1.10.0
by Taylor Arnold
Interface for initializing up the spaCy backend
This function must be run before annotating text with the tokenizers backend. It sets the properties for the spaCy engine and loads the file using the R to Python interface provided by reticulate.
Usage
init_spaCy(entity_flag = TRUE, vector_flag = FALSE, model_name = NULL)
Arguments
- entity_flag
boolean. Should named entities be identified.
- vector_flag
boolean. Should word vectors be computed and saved.
- model_name
string giving the model name for the Python/spaCy backend. Defaults to "en" (English) if NULL.
Examples
# NOT RUN {
init_spaCy(vector_flag = TRUE)
# }
# NOT RUN {
# }
Community examples
Looks like there are no examples yet.