stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

Is there any pretrained model that can be used for test? #41

Open wangliangguo opened 8 years ago

wangliangguo commented 8 years ago

I have some unknow words(unk) in my data, i want to send the context of unk to the pretrained model to get the prediction of embedding for the unk words. But i can't found pretrained model here, is there any such resources?

ghost commented 8 years ago

The pretrained model consists of the zip file downloads referenced on the readme. These files are simply dictionaries mapping each word to a word vector. Does that make sense?

wangliangguo commented 8 years ago

@Russell91 thanks for your reply. but i want to load these pretrained vector to the model and then sent some context of a word to this model to get a predict. How can i do that? (load the pretrained vector to the model)

ghost commented 8 years ago

Next word prediction is a separate task, that you may indeed use GloVe vectors for, but which actually requires additional machinery. I would suggest you look up other guides on the internet for how to do this. You'll find strategies that do use GloVe vectors as features for a machine learning model.