jx00109 / siamese-lstm-for-sentence-similarity

A tensorflow implementation of siamese lstm.
90 stars 33 forks source link

关于您这边的代码我有一点和您不一样的想法 #1

Closed WelcomeLi closed 6 years ago

WelcomeLi commented 6 years ago

在data_helper 中的 padding_and_generate_mask 方法的else中: new_x1[i, :, :] = (x1[0:max_len:embed_dim])这句话。意思是长度过长,需要裁剪。 这边首先x1的shape是【num of word,embed_dim】我觉得这边应该改成x1【0:max_len】而不是 x1【0:max_len:embed_dim】,希望您看到后能尽快解答。