maciejkula / glove-python

Toy Python implementation of http://www-nlp.stanford.edu/projects/glove/
Apache License 2.0
1.25k stars 319 forks source link

paragraph_transform input #52

Open weiliu620 opened 8 years ago

weiliu620 commented 8 years ago

What is the input data structure of the paragraph_transform function? Is it a list of word? I got keyError when I give a list of words as input.

I hope this is a simple question, because I'm new to NLP.

Thanks. This is great project.

UPDATE: did I understand it wrong? I'm using pretrained model and just use this function to convert short sentence/paragraph to a vector. But reading the code, it seems this function does gradient update, which seems like a training process...

mounaTay commented 7 years ago

@weiliu620 had you any chance to figure this out?