Code Monkey home page Code Monkey logo

cvc-qa's Introduction

CVC-QA

Counterfactual Variable Control for Robust and Interpretable Question Answering

This repository contains the code for the following paper:

  • Sicheng Yu, Yulei Niu, Shuohang Wang, Jing Jiang, Qianru Sun *"Counterfactual Variable Control for Robust and Interpretable Question Answering (https://arxiv.org/abs/2010.05581)

Requirement

  • torch 1.3.1
  • transformers 2.1.1
  • apex 0.1
  • tensorboardX 1.8
  • prettytable 0.7.2

Multiple-Choice Question Answering

Here we use RACE with BERT-base as example for MCQA task.

Dowload data

CVC Training

cd src_mc
bash train.sh

You may visualize the loss trend using tensorboardX in directory /src_mc/runs.

CVC-IV inference

Please change --timestamp according to your training time.

bash cvc_iv.sh

CVC-MV inference (including training for c-adaptor)

Please change --pre_model_dir according to model selected by you.

bash cvc_mv.sh

MCQA model trained by me

You can download the CVC model trained by us (CVC-MV is not included). You can find the results we reported in our paper. (https://drive.google.com/drive/folders/14ZMUwW_bxnpaDX4HbjdUxGwcNBzFIYR6?usp=sharing)

Span-Extraction Question Answering

Coming Soon!

cvc-qa's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cvc-qa's Issues

I would like to ask you to share with me your data about MCTest, DREAM adversarial attack datasets, or others.

It is my honor to read your code and paper. According to my understanding, your adversarial data is constructed by yourself. You provided the adversarial data set of the RACE data set. I would like to ask you to share with me your data about MCTest, DREAM adversarial attack datasets, or others. It would be a great help. Thank you for your generosity and I look forward to hearing from you.My email is [email protected]. @PluviophileYU

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.