brunodpoliveira/twittter-sentiment-analysis

sentiment_analysis.py not working

Closed this issue · 1 comments

Traceback (most recent call last):
File "/home/bruno/MEGA/ml/twittter-sentiment-analysis-main/naive-bayes/sentiment_analysis.py", line 102, in
NBayesClassifier = nltk.NaiveBayesClassifier.train(training_features)
File "/home/bruno/MEGA/ml/twittter-sentiment-analysis-main/venv/lib/python3.8/site-packages/nltk/classify/naivebayes.py", line 207, in train
for featureset, label in labeled_featuresets:
File "/home/bruno/MEGA/ml/twittter-sentiment-analysis-main/venv/lib/python3.8/site-packages/nltk/collections.py", line 414, in iterate_from
yield self._func(self._lists[0][index])
TypeError: 'NoneType' object is not subscriptable

Process finished with exit code 1

Started new approach - see sentiment_analysis_simple