watson_developer_cloud.personality_insights_v2 module¶
The v2 Personality Insights service (https://www.ibm.com/watson/developercloud/personality-insights.html)
-
class
PersonalityInsightsV2
(url='https://gateway.watsonplatform.net/personality-insights/api', **kwargs)[source]¶ Bases:
watson_developer_cloud.watson_service.WatsonService
Wrapper of the Personality Insights service
-
default_url
= 'https://gateway.watsonplatform.net/personality-insights/api'¶
-
profile
(text, content_type='text/plain', accept='application/json', language=None, csv_headers=False)[source]¶ Returns a personality profile given input text (at least 100 unique words) content_type can be ‘text/plain’, ‘application/json’ or ‘text/html’ if accept is set to ‘text/csv’, returns csv output (with a header row if csv_headers is set to True)
-