get_perspective: Query Google Perspective API with text

View source: R/perspectivefunctions.R

get_perspectiveR Documentation

Query Google Perspective API with text

Description

Queries the Google Perespective API and returns a tibble of various probability measures

Usage

get_perspective(text, api_key)

Arguments

text

A character string of text. Maximum size 1MB.

api_key

A Perspective API key. Required.

Examples

df <- get_perspective("Hello, How are you?", api_key = YourAPIkeyhere)

Arf9999/rtweetXtras documentation built on June 27, 2022, 5:10 a.m.