naive-bayes-classifier icon indicating copy to clipboard operation
naive-bayes-classifier copied to clipboard

error while try to run the example

Open PigeonPower opened this issue 8 years ago • 2 comments

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?

PigeonPower avatar Oct 02 '17 15:10 PigeonPower

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 = ["?!#%&"]))

Taishaer avatar Apr 18 '18 09:04 Taishaer

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

pk97 avatar Jul 26 '18 12:07 pk97