Skip to content
New issue

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

Type Error issue #10

Open
SIMRAN88 opened this issue Nov 9, 2017 · 1 comment
Open

Type Error issue #10

SIMRAN88 opened this issue Nov 9, 2017 · 1 comment

Comments

@SIMRAN88
Copy link

SIMRAN88 commented Nov 9, 2017

sentiment_score = response['sentiment']
TypeError: string indices must be integers, not str

Earlier i was not facing this issue but its bugging me.

issue

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']

@ahwankumar
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants