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

error while try to run the example #8

Open
PigeonPower opened this issue Oct 2, 2017 · 2 comments
Open

error while try to run the example #8

PigeonPower opened this issue Oct 2, 2017 · 2 comments

Comments

@PigeonPower
Copy link

I face this problem while i try to run the example

the error occur at this line :
newsTrainer = Trainer(tokenizer.Tokenizer(stop_words = [], signs_to_remove = ["?!#%&"]))
and the error is this :
AttributeError: module 'naiveBayesClassifier.tokenizer' has no attribute 'Tokenizer'

anyone can help me solve it?

@Taishaer
Copy link

update your exmple as the README.md showed.
newsTrainer = Trainer(tokenizer.Tokenizer(stop_words = [], signs_to_remove = ["?!#%&"]))
newsClassifier = Classifier(newsTrainer.data, tokenizer.Tokenizer(stop_words = [], signs_to_remove = ["?!#%&"]))

@pk97
Copy link

pk97 commented Jul 26, 2018

@Taishaer Even after the changes, errors persist as same.

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