GithubHelp home page GithubHelp logo

odqa's Introduction

Open Domain Question Answering System with Joint Training using Reinforcement Learning

Reimplementation of https://www.aclweb.org/anthology/P18-1159/ for the course Advances in Question Answering, WS 19/20, Saarland University by Ekaterina Saveleva, Fabian Goessl and Vanessa Hahn

Installation Requirements

pip install -r requirements.txt

Data preprocessing

Data conversion

Use a variation of this command for every file to convert and save it as a pickled dictionary object:

python3 preprocessing.py -t "searchqa" -f /local/user/output/searchQA  -s "test"

Encoding

For encoding please add a glove file and all converted files in output, then run:

python3 embeddings.py --out /local/user/output 

Preprocessing and Dataset objects

To do the final preprocessing of all the encoded files call:

python dict_to_qas.py --out /local/user/output 

Usage

Collect training and test files in two separate folders. Example of usage:

python run.py --lr 0.0001 --num_epochs 2 --emb /local/user/embedding_matrix.pkl --id2v /local/user/idx_2_word_dict.pkl --input_train /local/user/train_files_folder/ --input_test /local/user/test_files_folder/

Data

SearchQA: https://github.com/nyu-dl/dl4ir-searchqA

Quasar-T: https://github.com/bdhingra/quasar

odqa's People

Contributors

fgoessl avatar hahnvanessa avatar katysav avatar

Stargazers

Stalin Varanasi avatar

Watchers

Stalin Varanasi avatar  avatar  avatar

Forkers

fgoessl katysav

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.