cnlp_init_corenlp: Interface for initializing the coreNLP backend

View source: R/init.R

cnlp_init_corenlpR Documentation

Interface for initializing the coreNLP backend

Description

This function must be run before annotating text with the coreNLP 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_corenlp(lang = NULL, models_dir = NULL, config = NULL)

Arguments

lang

string giving the language name for the corenlp backend. Defaults to "en" (English) if set to NULL.

models_dir

directory where model files are located. Set to NULL to use the default.

config

An optional named list to be converted to a Python dictionary.

Author(s)

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

Examples

## Not run: 
cnlp_init_corenlp()

## End(Not run)


statsmaths/cleanNLP documentation built on Jan. 27, 2024, 1:43 p.m.