Skip to content

Implementation of the attention-sum reader using tensorflow and keras.

License

Notifications You must be signed in to change notification settings

cairoHy/attention-sum-reader

Repository files navigation

AS-Reader in tensorflow and keras

About This Repo

This is the tensorflow/keras version implementation/reproduce of the Attention Sum Reader model as presented in "Text Comprehension with the Attention Sum Reader Network" available at http://arxiv.org/abs/1603.01547.

And the original implementation is in https://github.com/rkadlec/asreader.

Quick Start

1.Getting data

2.Install dependencies

  • Ensure you have installed python3.5 in your computer.
  • Install keras and theano and other necessary packages.

pip install -r requirements.txt

  • Install nltk punkt for tokenizer.

python -m nltk.downloader punkt

3.Train the model

You can now train the model by entering the following command.

python main.py --data_dir data_path --train_file **.txt --valid_file **.txt

Details

For the algorithm details, see the paper. And for other detail in the code, see the README of the original implementation.

migration

This repo is not updated now, go to github.com/cairohy/RC-experiments for new models.

About

Implementation of the attention-sum reader using tensorflow and keras.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages