We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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']
The text was updated successfully, but these errors were encountered:
@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.
Sorry, something went wrong.
No branches or pull requests
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']
The text was updated successfully, but these errors were encountered: