Description Usage Arguments Value See Also
View source: R/text_cognizers.R
Analyze your text along the Big 5 dimensions of personality.
1 2 3 4 5 6 | text_personality(text, userpwd, keep_data = "true", callback = NULL,
model_id = "es-en-conversational", raw_scores = "false",
consumption_preferences = "false", csv_headers = "false",
version = "2020-01-01", content_type = "text/plain; charset=utf-8",
content_language = "en", accept = "application/json",
accept_language = "en")
|
text |
Character vector. |
userpwd |
Character scalar that contains 'username:password' string. |
keep_data |
Character scalar specifying whether to share your data with Watson services for the purpose of training their models. |
callback |
Function that can be applied to responses to examine http status, headers, and content, to debug or to write a custom parser for content. The default callback parses content into a data.frame while dropping other response values to make the output easily passable to tidyverse packages like dplyr or ggplot2. For further details or debugging one can pass a fail or a more compicated function. |
model_id |
Character scalar formated as 'source-target-domain'. Source language (Arabic, Brazilian Portuguese, English, French, Italian, or Spanish), target language (Arabic, Brazilian Portuguese, English, French, Italian, or Spanish) and domain of text (conversational, news, patent). Check IBM documentation for other language mappings. |
raw_scores |
Character scalar showing whether to include only normalized statistics or also raw statistics. |
consumption_preferences |
Character scalar showing whether to return consumption preferences |
csv_headers |
Character scalar showing whether to return column labels when Accept-Content is set to 'text/csv'. |
version |
Character scalar giving date that specifies the algorithm that went operational on or before the date. Future dates select the most recent algorithm. |
content_type |
Character scalar setting input data type header. Alternatives are 'application/json; charset=utf-8' and 'text/html; charset=ISO-8859-1'. |
content_language |
Character scalar setting input language. Alternatives are 'ar' (Arabic), 'es' (Spanish), 'ja' (Japanese). |
accept |
Character scalar that specifies response format. Alternative is text/plain. |
accept_language |
Character scalar setting output langauge. Alternatives are 'ar' (Arabic), 'de' (German), 'es' (Spanish), 'fr' (French), 'it' (Italian), 'ja' (Japanese), 'ko' (Korean), 'pt-br' (Brazilian Portuguese), 'zh-cn' (Simplified Chinese), 'zh-tw' (Traditional Chinese). |
List containing parsed content.
Check http://www.ibm.com/watson/developercloud/doc/personality-insights/ for further documentation, and https://personality-insights-livedemo.mybluemix.net/ for a web demo.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.