Skip to content

wywy136/StrategyQA

Repository files navigation

Disentangled Retrieval and Reasoning for Implicit Question Answering

This repository contains codes for the paper "Disentangled Retrieval and Reasoning for Implicit Question Answering".

Running

Dependencies

python==3.8
torch==1.9.0
nltk==3.6.8
transformers==4.9.0

Baseline

The weight model named weights.th of baseline should be in the path ./pretrained_model/6_STAR_ORA-p/, which could be downloaded and unzipped from here.

Configuration

Run the model with default configuration

python main.py

Configuration can be edited in the file main.py or in the running command line, for example,

python main.py \
--num_workers 0 \ 
--load_pretrained true \ 
--epoch_num 20 \ 
--batch_size 16

Operator

The json files in the path ./classification/ describes several strategies for the definition and classification of operators, which are crucial components in our reasoning. In the paper, we adopt the 5-class strategy, that is, comparison, logical, entail, numerical and binary. To try another classification strategy, change the configuration --op_classification accordingly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages