naive-bayes-classifier
naive-bayes-classifier copied to clipboard
error while try to run the example
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?
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 Even after the changes, errors persist as same.