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

Scoring sentences with a trained language model #38

Closed matt-gardner closed 8 years ago

matt-gardner commented 8 years ago

This completes the integration of Hanie's sentence corruptor into the pipeline. The code now works: given a set of input sentences, we train a language model, and we use a KB to generate candidate corruptions, then we use the language model to select among the corruptions.

Note that this PR looks like it has more in it than it does, currently, because it builds off of two outstanding PRs. Once those two are merged, it will be a lot easier to see what exactly is in this PR.