For more details see ?peRspective
or Perspective API documentation
form_request(score_model, text, score_sentences, languages, doNotStore = F)
score_model | Specify what model do you want to use (for example |
---|---|
text | a character string. |
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 |
languages | A vector of ISO 631-1 two-letter language codes specifying the language(s) that comment is in (for example, "en", "es", "fr", "de", etc). If unspecified, the API will autodetect the comment language. If language detection fails, the API returns an error. |
doNotStore | Whether the API is permitted to store comment from this request. Stored comments will be used for future research and community model building purposes to improve the API over time. Perspective API also plans to provide dashboards and automated analysis of the comments submitted, which will apply only to those stored. Defaults to |
a tibble