muatik / naive-bayes-classifier

yet another general purpose naive bayesian classifier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

errors while trying newsClassifier.py

kp625544 opened this issue · 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'

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

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