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

Uiong with pre-trained word vectors #6

Open
GuzelSwon opened this issue Feb 19, 2020 · 1 comment
Open

Uiong with pre-trained word vectors #6

GuzelSwon opened this issue Feb 19, 2020 · 1 comment

Comments

@GuzelSwon
Copy link

Hi!

I'm wondering if it's possible to use this model with Glove pre-trained word vectors?
How is it possible to substitute this part in that case?

data = []
for i in range(0, len(raw_text) - 2):
context = [raw_text[i-2], raw_text[i-1]]
target = raw_text[i]
data.append((context, target))

So, I don't have a raw text, but only word vectors and want to predict the next word of the sentence.

@GuzelSwon GuzelSwon changed the title Usong with pre-trained word vectors Uiong with pre-trained word vectors Feb 19, 2020
@simonwuelker
Copy link
Contributor

Hi

I'm not sure if i understand you correctly but if you want to predict the next word vector given the previous vectors you could just use a vanilla neural network or an RNN. The focus of this repo lies on the pytorch embedding so while you could theoretically reuse the neural network part you would have to delete the embedding step from the forward function and replace it with the GloVe equivalent. Is this more or less what you are trying to achieve? I'm not too familiar with GloVe so im sorry if i misunderstood you

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