Giter VIP home page Giter VIP logo

machine_reading_comprehension's Introduction

Machine Reading Comprehension with Deep Learning

Implementation of MEMEN: Multi-layer Embedding with Memory Networks for Machine Comprehension, which list the 2rd place on Aug 2017 for standford machine reading comprehension competition SQuAD

MEMEN: Multi-layer Embedding with Memory Networks for Machine Comprehension

Process:

1.encoder with bi-LSTM to word/char/ner/pos embeddings;

2.matching of query and context(3 different attentions/alginment matrix),concat mathings, gate, bi-LSTM;

3.use pointer network(PNet) to get start point and end point;

PNet initialize with query-awere representation==>

do attention for query and context==>

update query==>

repeat attention process.

Notice: you can pretrain word/character/NER/POS embedding, and load from outside.

Toy task:

find three successive elements that sum up most(least) in an array

input:(paragraphs,query). for example,paragraphs=[2, 6, 9, 5, 4, 0, 8, 3, 7, 1];query=0,stand for find values sum up most;

output:(start_point,end_point). for example,start_point: 1,end_point: 3,means the following three elements sum up most in the array:[6, 9, 5]

for more detail,check train() and predict() of memen_model.py

Reference:

MEMEN: Multi-layer Embedding with Memory Networks for Machine Comprehension, Boyuan Pan, Hao Li, Zhou Zhao, Bin Cao, Deng Cai, Xiaofei He

machine_reading_comprehension's People

Contributors

brightmart avatar

Watchers

James Cloos avatar Ibrahim Dahmash 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.