Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors while trying newsClassifier.py #7

Open
kp625544 opened this issue Jun 3, 2017 · 2 comments
Open

errors while trying newsClassifier.py #7

kp625544 opened this issue Jun 3, 2017 · 2 comments

Comments

@kp625544
Copy link

kp625544 commented Jun 3, 2017

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
Copy link

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

@flamato
Copy link

flamato commented Aug 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants