O'Reilly logo

Hands-On Natural Language Processing with Python by Rajalingappaa Shanmugamani, Rajesh Arumugam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing a memory network in TensorFlow

In the following sections, we will look under the hood of a simple memory network architecture described by Sukhbaatar et al. in 2015 for building a retrieval-based QA system. We will provide code snippets to build a generic memory network class, explaining the working and details of the model along the way

Details about the model can be found in the paper End-to-End Memory Networks by Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus at http://arxiv.org/abs/1503.08895.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required