cyhex / streamcrab

Real-Time, Twitter sentiment analyzer engine
http:/www.streamcrab.com
144 stars 49 forks source link

Classifier NoneType Error #16

Closed ilkaytaskiran closed 10 years ago

ilkaytaskiran commented 10 years ago

Hi

python start-classifier.py running .

After error give program

Traceback (most recent call last): File "start-classifier.py", line 14, in pool = ClassifierWorkerPool() File "/home/ilkay/Masaüstü/streamcrab-master/smm/classifier/pool.py", line 50, in init self.trained_classifier = row.get_classifier() AttributeError: 'NoneType' object has no attribute 'get_classifier'

What should I do ?

Thanks

cyhex commented 10 years ago

You are trying not get a non existing classifier. Change the name of the classifier in config.py to one that exists.

cyhex commented 10 years ago

In config.ini see also issue #14 fixed in 7736dea

ilkaytaskiran commented 10 years ago

Thank you,

But python toolbox/train-classifier.py MyDataClasses 2000 There is only 276 positive tweeets in DB

config.py (classifier): MyDataClasses

python shell-classifier.py MyDataClasses TrainedClassifier MyDataClasses do not exists

python start-classifier.pyTraceback (most recent call last): File "start-classifier.py", line 14, in pool = ClassifierWorkerPool() File "/home/ilkay/streamcrab/smm/classifier/pool.py", line 50, in init self.trained_classifier = row.get_classifier() AttributeError: 'NoneType' object has no attribute 'get_classifier'

Where am I doing wrong? Please help for my thesis Thank you