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

'module' object has no attribute 'Tokenizer'

Open b121351 opened this issue 6 years ago • 1 comments

newsTrainer = Trainer(tokenizer.Tokenizer(stop_words = [], signs_to_remove = ["?!#%&"])) At the above line, I am getting an error. Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'Tokenizer'

b121351 avatar Sep 07 '18 13:09 b121351

@b121351 you should copy the contents of tokenizer.py in this repo into tokenizer.py in your pip package. You can find the location by running pip show naiveBayesClassifier in the terminal

joshma91 avatar Sep 21 '18 06:09 joshma91