Learn R Programming

cleanNLP (version 3.1.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, disable = NULL, max_length = NULL)

Arguments

model_name

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

disable

an optional vector of pipes to disable.

max_length

amount of temporary memory provided to Spacy, in characters. The default of 1000000 should work for most applications, but can be increased when working with long documents.

Author

Taylor B. Arnold, taylor.arnold@acm.org

Examples

Run this code
if (FALSE) {
cnlp_init_spacy(model_name = "en_core_web_sm")
}

Run the code above in your browser using DataLab