Skip to content

Instantly share code, notes, and snippets.

@AnasAlmasri
Last active August 9, 2020 02:56
Show Gist options
  • Save AnasAlmasri/64c2b99bd86c50e6df2132497ed9f474 to your computer and use it in GitHub Desktop.
Save AnasAlmasri/64c2b99bd86c50e6df2132497ed9f474 to your computer and use it in GitHub Desktop.
Test out buildTestSet() function
search_term = input("Enter a search keyword:")
testDataSet = buildTestSet(search_term)
print(testDataSet[0:4])
@hjkgithub
Copy link

its not running
File "D:/tweet analysis/sentiment.py", line 31, in
print(testDataSet[0:4])
TypeError: 'NoneType' object is not subscriptable

#help me plz

@PurplePrincess14
Copy link

Getting the same error :/
TypeError: 'NoneType' object is not subscriptable

Please anyone help

@Julieta7312
Copy link

While executing the code;

search_term = input('Enter a search keyword:')
#Try removing the 'input' and just enter some real keyword inside the quotes.
e.g. search_term = 'sentiment'

Hope this will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment