November 2019
Intermediate to advanced
346 pages
9h 36m
English
In the following steps, we set up an API call to analyze the personality of an author of tweets:
from ibm_watson import PersonalityInsightsV3from datetime import datev = str(date.today())api_key = "fill me in"
personality_insights_service = PersonalityInsightsV3(version=v, iam_apikey=api_key)
tweets_file = "ElonMuskTweets.txt"
with open(tweets_file) as input_file: profile = ...