airalcorn2 / Deep-Semantic-Similarity-Model

My Keras implementation of the Deep Semantic Similarity Model (DSSM)/Convolutional Latent Semantic Model (CLSM) described here: http://research.microsoft.com/pubs/226585/cikm2014_cdssm_final.pdf.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch of variable length sentence

blablahaha opened this issue · comments

Hi,

Thank you so much for making this code!

For the variable length input, if I understand you correctly, it just can fit one query by one query instead of fitting all data? So I would like to know, whether there exist some tricks to fit all of the variable length input in one batch?

You'll need to use a Masking layer.