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

'module' object has no attribute 'Tokenizer' #13

Open
b121351 opened this issue Sep 7, 2018 · 1 comment
Open

'module' object has no attribute 'Tokenizer' #13

b121351 opened this issue Sep 7, 2018 · 1 comment

Comments

@b121351
Copy link

b121351 commented Sep 7, 2018

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'

@joshma91
Copy link

@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

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

2 participants