cleanNLP (version 1.10.0)

init_spaCy: Interface for initializing up the spaCy backend

Description

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

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

Run the code above in your browser using DataLab