as_py_list: as py list because R to Python conversion doesn't work with...

as_py_listR Documentation

as py list because R to Python conversion doesn't work with list is of length 1

Description

as py list because R to Python conversion doesn't work with list is of length 1

Usage

as_py_list(x)

Arguments

x

character vector that is to be passed into tensorflowtext via reticulate.

Value

List if x is length 1 else x.


sentiment.ai documentation built on March 19, 2022, 2:15 a.m.