public class PersonalityInsights extends WatsonService
| Constructor and Description |
|---|
PersonalityInsights()
Instantiates a new Personality Insights service.
|
| Modifier and Type | Method and Description |
|---|---|
Profile |
getProfile(Content content)
Accepts a
Content object and analyzes the text. |
Profile |
getProfile(String text)
Accepts text and responds with a
Profile with a tree of
characteristics that include personality, needs, and values. |
String |
toString() |
execute, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, setApiKey, setEndPoint, setUsernameAndPasswordpublic PersonalityInsights()
public Profile getProfile(Content content)
Content object and analyzes the text. The response is
Profile with a tree of characteristics that include personality,
needs, and values. If you include either created or updated timestamps,
the response also includes a summary of the author's writing habits with
respect to time of day.content - the contentContentpublic Profile getProfile(String text)
Profile with a tree of
characteristics that include personality, needs, and values. If you
include either created or updated timestamps, the response also includes
a summary of the author's writing habits with respect to time of day.text - the text to analyzeContentpublic String toString()
toString in class WatsonServiceCopyright © 2015. All rights reserved.