Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Latest commit

 

History

History
76 lines (55 loc) · 1.81 KB

README.md

File metadata and controls

76 lines (55 loc) · 1.81 KB

DrQA tf-idf

install

pip install -e git+https://github.com/facebookresearch/DrQA#egg=DrQA
pip install pexpect==4.8

download models

Download the following files in the models folder.

run

python scripts/execute_retrieval.py -m drqa -o predictions/drqa

DPR

install

pip install -e git+https://github.com/facebookresearch/DPR.git#egg=DPR

download models

Download the following files in the models folder.

run

python scripts/execute_retrieval.py -m dpr -o predictions/dpr

DPR distributed

Please follow instructions in the Sphere repository.

BLINK

install

pip install -e git+https://github.com/facebookresearch/BLINK.git#egg=BLINK
pip install flair

download models

Download files in the models folder using the following script: download_models.sh

And this file:

run

python scripts/execute_retrieval.py -m blink -o predictions/blink

BM25

Follow instructions in pyserini to download JAVA.

install

pip install jnius
pip install pyserini==0.9.4.0

run

python scripts/execute_retrieval.py -m bm25 -o predictions/bm25