sentiment_score = response['sentiment'] TypeError: string indices must be integers, not str Earlier i was not facing this issue but its bugging me.  my code: set_api_key(PKEY) import pdb; pdb.set_trace() words = str(caption) #words_check = words.split() response = sentiment(words) sentiment_score = response['sentiment']
Activity
ahwankumar commentedon Nov 10, 2017
@SIMRAN88 We are unable to reproduce the error. Try printing the content of the variable 'response'. This will help you in debugging the issue.
Also try updating the paralleldots package from pypi.