Coder Social home page Coder Social logo

kobedeshow / attention-sum-reader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cairohy/attention-sum-reader

0.0 2.0 0.0 111 KB

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

License: GNU General Public License v3.0

Python 100.00%

attention-sum-reader's Introduction

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/zhanghaoyu1993/RC-experiments for new models.

attention-sum-reader's People

Contributors

cairohy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.