as_py_list function

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

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

as_py_list(x)

Arguments

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

Returns

List if x is length 1 else x.

Other functions in sentiment.ai

Related functions from the same R package

  • Maintainer: Ben Wiseman
  • License: MIT + file LICENSE
  • Last published: 2022-03-19