unnest_scores: Unnest scores coming out of Perspective API

Description Usage Arguments Value

View source: R/prsp_score.R

Description

For more details see ?peRspective or Perspective API documentation

Usage

1
unnest_scores(Output, score_model, score_sentences, text)

Arguments

Output

comes out of the GET call.

score_model

Specify what model do you want to use (for example TOXICITY and/or SEVERE_TOXICITY). Specify a character vector if you want more than one score. See peRspective::prsp_models.

score_sentences

A boolean value that indicates if the request should return spans that describe the scores for each part of the text (currently done at per sentence level). Defaults to FALSE.

text

a character string.

Value

a tibble


peRspective documentation built on July 14, 2021, 9:06 a.m.