MCPcopy
hub / github.com/GauravBh1010tt/DeepLearn / word2vec_embedding_layer

Function word2vec_embedding_layer

_deeplearn_utils/dl_text/dl.py:156–158  ·  view source on GitHub ↗
(embedding_matrix,train=False)

Source from the content-addressed store, hash-verified

154 return X_train_l,X_test_l,X_dev_l,X_train_r,X_test_r,X_dev_r
155
156def word2vec_embedding_layer(embedding_matrix,train=False):
157 layer = Embedding(input_dim=embedding_matrix.shape[0], output_dim=embedding_matrix.shape[1], weights=[embedding_matrix],trainable=train)
158 return layer
159
160def loadGloveModel(glovefile):
161 print 'Loading Glove File.....'

Callers 11

WA_LSTMFunction · 0.90
S_LSTMFunction · 0.90
cntnFunction · 0.90
cnn_simFunction · 0.90
cnn_sim_ftFunction · 0.90
abcnnFunction · 0.90
bcnnFunction · 0.90
cnnFunction · 0.90
cnn_ftFunction · 0.90
cnnFunction · 0.90
cnn_ftFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected