Learn R Programming

stanza (version 1.0-3)

stanza_initialize: Initialize Stanza

Description

Initialize the Python binding to stanza.

Usage

stanza_initialize(
  python = NULL,
  virtualenv = NULL,
  condaenv = NULL,
  model_dir = NULL,
  resources_url = NULL,
  model_url = NULL
)

Value

NULL

Arguments

python

a character string giving the path to the Python binary (executeable) to be used. The variable python is passed to reticulate::use_python.

virtualenv

a character string giving the name of the virtual environment, or the path to the virtual environment, to be used. The variable virtualenv is passed to reticulate::use_virtualenv.

condaenv

a character string giving the name of the Conda environment to be used. The variable condaenv is passed to reticulate::use_condaenv.

model_dir

a character sting giving the path to the directory storing the Stanza models.

resources_url

a character string giving the url to the Stanza model resources.

model_url

a character string giving the model url.

Examples

Run this code
if (stanza_options("testing_level") >= 3L) {
stanza_initialize()
}

Run the code above in your browser using DataLab