https://github.com/imraviagrawal/ReadingComprehension
Bi-Directional Attention Flow for Machine Comprehensions
https://github.com/imraviagrawal/ReadingComprehension
artificial-intelligence attention-mechanism bilstm deep-learning deep-recurrent-q-network glove-embeddings glove-vectors gru lstm machine-comprehension natural-language-processing nlp nlp-machine-learning question-answering readingcomprehension squad standard umassamherst word2vec wordembedding
Last synced: 3 months ago
JSON representation
Bi-Directional Attention Flow for Machine Comprehensions
- Host: GitHub
- URL: https://github.com/imraviagrawal/ReadingComprehension
- Owner: imraviagrawal
- Created: 2017-11-04T14:43:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T22:16:31.000Z (almost 8 years ago)
- Last Synced: 2024-11-27T03:34:36.187Z (10 months ago)
- Topics: artificial-intelligence, attention-mechanism, bilstm, deep-learning, deep-recurrent-q-network, glove-embeddings, glove-vectors, gru, lstm, machine-comprehension, natural-language-processing, nlp, nlp-machine-learning, question-answering, readingcomprehension, squad, standard, umassamherst, word2vec, wordembedding
- Language: Python
- Homepage: https://arxiv.org/abs/1611.01603
- Size: 238 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reading Comprehensiom
Context paragraph: On 24 March 1879, Tesla was returned to Gospic under police guard for
not having a residence permit. On 17 April 1879, Milutin Tesla died at the age of 60 after
contracting an unspecified illness (although some sources say that he died of a stroke). During
that year, Tesla taught a large class of students in his old school, Higher Real Gymnasium, in
Gospic.Question: Why was Tesla returned to Gospic?
Answer : not having a residence permit
## The project has several dependencies that have to be satisfied before running the code. You can install them using your preferred method -- we list here the names of the packages using `pip`.
# Requirements
The starter code provided pressuposes a working installation of Python 2.7, as well as a TensorFlow 0.12.1.
It should also install all needed dependnecies through
`pip install -r requirements.txt`.# Running
The WordEmbedding and the preprocessing scripts are taken from the Stanford CS224 class, though we will be modelling and training different neural network models.
You can get started by downloading the datasets and doing dome basic preprocessing:
$ code/get_started.sh
Note that you will always want to run your code from this assignment directory, not the code directory, like so:
$ python code/train.py
This ensures that any files created in the process don't pollute the code directoy.
# Dataset
After the download, the SQuAD dataset is placed in the data/squad folder. SQuAD downloaded
files include train and dev files in JSON format:
• train-v1.1.json: a train dataset with around 87k triplets.
• dev-v1.1.json: a dev dataset with around 10k triplets.Note that there is no test dataset publicly available: it is kept by the authors of SQuAD to ensure fairness in model evaluations. While developing the model, we will consider for all purposes the dev set as our test set, i.e., we won’t be using the dev set until afterinitial model development. Instead, we split the supplied train dataset into two parts: a 95% slice for training, and the rest 5% for validation purposes, including hyperparameter search. We refer to these as train.* and val.* in filenames.