naive-bayes-classifier icon indicating copy to clipboard operation
naive-bayes-classifier copied to clipboard

errors while trying newsClassifier.py

Open kp625544 opened this issue 8 years ago • 2 comments

Traceback (most recent call last): File "newsClassifier.py", line 22, in newsTrainer.train(news['text'], news['category']) File "/home/hydra/Desktop/AUR/projectSpider/naive-bayes-classifier/naiveBayesClassifier/trainer.py", line 17, in train tokens = self.tokenizer.tokenize(text) AttributeError: 'module' object has no attribute 'tokenize'

kp625544 avatar Jun 03 '17 07:06 kp625544

Any one who can respond for the solution of the above mentioned issue?

sriramsaiamuluru1 avatar Jul 10 '17 19:07 sriramsaiamuluru1

Hello ! I had the same problem.

To solve it, I installed anaconda for Python 2.7 and tried this command in the Anaconda prompt : pip install naiveBayesClassifier

flamato avatar Aug 09 '17 18:08 flamato