allenai / deep_qa

A deep NLP library, based on Keras / tf, focused on question answering (but useful for other NLP too)
Apache License 2.0
404 stars 132 forks source link

Baseline SiameseSentenceSelection Model #268

Closed nelson-liu closed 7 years ago

nelson-liu commented 7 years ago

This PR implements a baseline siamese style architecture for sentence selection.

We basically encode the question and each candidate sentence with some encoder, then take the cosine similarity and normalize to get a probability distribution over candidate sentences.

nelson-liu commented 7 years ago

merging this now, since it finally passed ci...