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

Create vectors for classification #31

Open
GoogleCodeExporter opened this issue Apr 2, 2016 · 1 comment
Open

Create vectors for classification #31

GoogleCodeExporter opened this issue Apr 2, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I'm trying to use word2vec in order to change a bunch of text into vectors with 
the use of word2vec.

Ultimately, I want to do this so I can go from text -> vectors -> 
classification through the usage of a classification algorithm like a neural 
network. Any reading or testing of word2vec, however, does not let me output a 
vectorized version of my input text data, but, rather, I can just do word 
similarity or some other feature like that. 

Am I completely off base with the potential usage of word2vec or is this 
actually possible?

Original issue reported on code.google.com by clayclay...@gmail.com on 1 Jun 2015 at 2:37

@GoogleCodeExporter
Copy link
Author

Sure this is possible, but you will need to change the code a bit. Simply, 
instead of having objective to predict nearby words, you can sum the word 
vectors in a sentence (like in CBOW) and predict the label. It should work 
well, if you train it for sufficient number of iterations.

Original comment by tmiko...@gmail.com on 2 Jun 2015 at 7:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant