RandolphVI / Text-Pairs-Relation-Classification

About Text Pairs (Sentence Level) Classification (Similarity Modeling) Based on Neural Network.
Apache License 2.0
191 stars 55 forks source link

Embedding Position Feature #13

Closed Jayden-zdd closed 2 years ago

Jayden-zdd commented 5 years ago

Hi, I turned words into word vectors through glove.6B.300.txt, but how to do with positional features?

RandolphVI commented 5 years ago

Hi, @zhangdoubledong

Sorry for replying so late. If you use the Glove as pre-trained embedding, you need to modify the code in data_helper.py, like the function load_word2vec_matrix() which should be modified to load your pre-trained Glove embedding (it should use the grammar of Glove package ).

Hope this helps!