DrQA tf-idf

March 30, 2022 ยท View on GitHub

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