Skip to content

Implementation of Paragraph Ranker for Open-Domain QA

Notifications You must be signed in to change notification settings

jiangkun1994/ParagraphRanker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paragraph Ranker

This is a PyTorch implementation of a paper Ranking Paragraphs for Improving Answer Recall in Open-Domain Question Answering (Lee et al. 2018). Code implementations are based on the DrQA repository, and few additional experiments on entity based QA were conducted with @donghyeonk.

Requirements

Setups

Follow datasets and enviromental setups described in the DrQA repository.

Pretraining and Evaluation

# Pretrain reader model
$ python entityqa/reader/train.py

# Pretrain ranker model
$ python entityqa/ranker/train.py

# Evaluate QA pipeline
$ python entityqa/pipeline/predict.py --query-type SQuAD --ranker-type default --reader-type default

See codes for argument details of each file.

About

Implementation of Paragraph Ranker for Open-Domain QA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%