muatik / naive-bayes-classifier

yet another general purpose naive bayesian classifier.
MIT License
172 stars 72 forks source link

errors while trying newsClassifier.py #7

Open kp625544 opened 7 years ago

kp625544 commented 7 years ago

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'

sriramsaiamuluru1 commented 7 years ago

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

flamato commented 7 years ago

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