BiDAF-Keras

Implementation of Bidirectional Attention Flow for Machine Comprehension in Keras 2

What is this project about?

Machine Comprehension is a task in the field of NLP & NLU where the machine is provided with a passage and a question, and the machine tries to find an answer to the asked question from that given passage, by understanding the syntax and semantics of human language (here, English) and by establishing and understanding the relations betweeen the passage and the question.

We have implemented a model suggested in the paper Bidirectional Attention Flow for Machine Comprehension by a team of allennlp, popularly known as BiDAF.

Checkout this video to understand more:

Visualizing machine comprehension task with BiDAF

What you can do with this project

Prerequisites

Installation

Execute this command pip install bidaf-keras

Note that the above code won't install tensorflow as there is no way to detecting if your system has GPU while installing this package. But you can explicitly mention if you want to install tensorflow (CPU/GPU) while installing this package.

Usage

This project is available for use as a complete module. You can use this project via command-line arguments or by importing functionalities from it.:

Features

Pre-trained Models

Project flow

Improvements in future releases

Warnings

Issues

Contributions

Thoughts, samples codes, modifications and any other type of contributions are appreciated. This is my first project in Deep Learning and also first being open source. I will need as much help as possible as I don't know the path I need to follow. Thank you..

Donations

We want to continue maintaing this project with lots of new features. When we started this project, our end-to-end task was to provide exact answers to users' questions by searching contextual information automatically from the Internet. And we are surely moving towards achieving this task. But we are facing a big problem now. The GPU we used earlier was provided by our college and today is the day of our graduation. Happy to graduate but sad to know that we won't have a GPU to train this model on.. A big question is how will we continue? We haven't earned a single income to go buy a new one.. That's the reason we are taking donations.

Please help us if you can.. If you can't but you know someone who can, share this with them. We will be maintaining a list of people who donated and thus helped us. While donating, you can provide a link to your any profile (GitHub, Facebook, LinkedIn, etc..) and we will also add those links to the list we are maintaining here. Maybe it works for you as a kind of marketing.. We should also try helping as much as we can to the people who help us -- this is the reason we will be maintaining the list open on GitHub.

paypal

Thank you..

My team

Our Guide

Special Thanks to the researchers of BiDAF