errors while trying newsClassifier.py
kp625544 opened this issue · comments
Kaushal Parikh commented
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'
Sriram Sai Amuluru commented
Any one who can respond for the solution of the above mentioned issue?
Florent Amato commented
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