Giter Site home page Giter Site logo

qa_verbalization's Introduction

Baseline models for VQuAnDa

VQuAnDa Repository

Introduction

The repository contains sequence to sequence models for evaluating VQuAnDa.

The models we use are based on:

Experiments

Requirements and Setup

Python version >= 3.7

PyTorch version >= 1.3.0

# first download the dataset
git clone https://github.com/AskNowQA/VQUANDA.git
cd VQUANDA
# inside the dataset download the baseline models
git clone https://github.com/endrikacupaj/VQUANDA-Baseline-Models.git
cd VQUANDA-Baseline-Models
pip install -r requirements.txt

Run models

RNN-1 with Bahdanau attention:

python run.py --model rnn --attention bahdanau
# with covered entities
python run.py --model rnn --attention bahdanau --cover_entities
# query as input
python run.py --model rnn --attention bahdanau --input query
# query as input with covered entities
python run.py --model rnn --attention bahdanau --input query --cover_entities

RNN-2 with Luong attention:

python run.py --model rnn --attention luong
# with covered entities
python run.py --model rnn --attention luong --cover_entities
# query as input
python run.py --model rnn --attention luong --input query
# query as input with covered entities
python run.py --model rnn --attention luong --input query --cover_entities

CNN:

python run.py --model cnn
# with covered entities
python run.py --model cnn --cover_entities
# query as input
python run.py --model cnn --input query
# query as input with covered entities
python run.py --model cnn --input query --cover_entities

Transformer:

python run.py --model transformer
# with covered entities
python run.py --model transformer --cover_entities
# query as input
python run.py --model transformer --input query
# query as input with covered entities
python run.py --model transformer --input query --cover_entities

Results

License

The repository is under MIT License.

References

Links we considered for implementing the baseline models:

qa_verbalization's People

Contributors

barshana-banerjee avatar

Watchers

James Cloos avatar  avatar paper2code - bot 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.