cnlp_init_spacy {cleanNLP}R Documentation

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" (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(s)

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

Examples

## Not run: 
cnlp_init_spacy(model_name = "en")

## End(Not run)


[Package cleanNLP version 3.0.7 Index]