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

CountVectorizer: Vocabulary wasn't fitted #1

Open
jabertuhin opened this issue May 2, 2019 · 4 comments
Open

CountVectorizer: Vocabulary wasn't fitted #1

jabertuhin opened this issue May 2, 2019 · 4 comments

Comments

@jabertuhin
Copy link

I was mainly reading your medium post. I tried to code accordingly but faced an error: "CountVectorizer: Vocabulary wasn't fitted". As I was using the saved model.
You skipped the part that we also have to save the CountVectorizer's fitted vector. I resolved my issue by following this link -> https://stackoverflow.com/questions/45674411/load-pickle-file-for-counvectorizer
It wiil be really helpful for others if you can update your project or I can do a pull request.

@Himanshu081
Copy link

hey man please help . i am not able to solve this issue. i tried everything,searched everywhere,plese help

@jabertuhin
Copy link
Author

Hi @Himanshu081,
You can visit my repo for this - https://github.com/jabertuhin/sms-spam-detector-webapp
I worked on this project quite a time ago. So, if you can manage to understand my solution from the code I shared, it will be great.
Otherwise share you doubts, I will try to explain those to you later.

@Himanshu081
Copy link

Himanshu081 commented Apr 19, 2020

Very much appreciated man . Thanks a lot. I will post if any error occurs. Again thanks man for helping.

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
@jabertuhin @Himanshu081 and others