mandarjoshi90 / pair2vec

pair2vec: Compositional Word-Pair Embeddings for Cross-Sentence Inference
Apache License 2.0
61 stars 8 forks source link

sorry to trouble #6

Open onceGot opened 4 years ago

onceGot commented 4 years ago

but could you please tell how can I load a pretrained Pair2vec model?

mandarjoshi90 commented 4 years ago

If you want to use this for QA/NLP with allennlp, see this https://github.com/mandarjoshi90/pair2vec#using-pretrained-pair2vec-embeddings

If you want to do this in your own code, please see how it's initialized here. https://github.com/mandarjoshi90/pair2vec/blob/master/endtasks/bidaf_pair2vec.py#L72

onceGot commented 4 years ago

I just wanna get the pair embedding given two words, eg, take (see, film) as input and then obtain an vector as output