Skip to content

aiedward/Question_Answering_Models

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Question_Answering_Models

This repo collects and re-produces models related to domains of question answering and machine reading comprehension.

comunity QA

Dataset

WikiQA, TrecQA, InsuranceQA

data preprocess on WikiQA

cd cQA
bash download.sh
python preprocess_wiki.py

Siamese-NN model

This model is a simple complementation of a Siamese NN QA model with a pointwise way.

To this repo

train model

python siamese.py --train

test model

python siamese.py --test

Siamese-CNN model

This model is a simple complementation of a Siamese CNN QA model with a pointwise way.

To this repo

train model

python siamese.py --train

test model

python siamese.py --test

Siamese-RNN model

This model is a simple complementation of a Siamese RNN/LSTM/GRU QA model with a pointwise way.

To this repo

train model

python siamese.py --train

test model

python siamese.py --test

note

All these three models above are based on the vanilla siamese structure. You can easily combine these basic deep learning module cells together and build your own models.

QACNN

Given a question, a positive answer and a negative answer, this pairwise model can rank two answers with higher ranking in terms of the right answer.

Refer to 《APPLYING DEEP LEARNING TO ANSWER SELECTION:A STUDY AND AN OPEN TASK》

To this repo

train model

python qacnn.py --train

test model

python qacnn.py --test

Decomposable Attention Model

Refer to 《A Decomposable Attention Model for Natural Language Inference》

To this repo

train model

python decomp_att.py --train

test model

python decomp_att.py --test

Compare-Aggregate Model with Multi-Compare

Refer to 《A COMPARE-AGGREGATE MODEL FOR MATCHING TEXT SEQUENCES》

To this repo

train model

python seq_match_seq.py --train

test model

python seq_match_seq.py --test

BiMPM

Refer to 《Bilateral Multi-Perspective Matching for Natural Language Sentence》

To this repo

train model

python bimpm.py --train

test model

python bimpm.py --test

Machine Reading Comprehension

Dataset

CNN/Daily mail, CBT, SQuAD, MS MARCO, RACE

GA Reader

To be done

SA Reader

To be done

AoA Reader

To be done

BiDAF

To be done

QANet

Refer to 《QANet: Combining Local Convolution with Global Self-Attention for Reading Comprehension》

To this repo

Information

For more information, please visit http://skyhigh233.com/blog/2018/04/26/cqa-intro/.

About

This repo collects and re-produces models related to domains of question answering and machine reading comprehension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.7%
  • Jupyter Notebook 5.1%
  • Shell 1.2%