Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

cleanNLP

A Tidy Data Model for Natural Language Processing

v3.0.3
LGPL-2
Authors
Taylor B. Arnold [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.