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

prediction is wrong #6

Open
haziyevv opened this issue Mar 4, 2020 · 6 comments
Open

prediction is wrong #6

haziyevv opened this issue Mar 4, 2020 · 6 comments

Comments

@haziyevv
Copy link

haziyevv commented Mar 4, 2020

In the prediction make_w2v_embeddings creates a new vector for each sentence. So numbers are not consistent with the prediction. It should be same with the training data. For example when we math word "play" to 1 in testing and to 22 in training, then how could we make prediction correctly ?

@sasidhar13
Copy link

did you have a dataset for this code

@sasidhar13
Copy link

please make a repository

@haziyevv
Copy link
Author

haziyevv commented Mar 5, 2020

What do you mean? I say that when you train with one dataset you are representing it with numbers using word indices. When you test you should also use the same word indices, but here it is not the case.

@haziyevv
Copy link
Author

haziyevv commented Mar 5, 2020

@sasidhar13
Copy link

thank you

@uRENu
Copy link

uRENu commented Mar 3, 2021

I have the same problem, and in my opinion, to solve this problem I customize a mapping table to ensure that the indices of the training set and the test set are the same. What do you think of ?

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