conda create -n odqa python==3.8
conda activate odqa
conda install -c conda-forge openjdk=11
pip install transformers==4.28.1
pip install pyserini
pip install pyvi
Pyserini.ipynb
or you can download the prepared index here link. It contains the indexed UIT-ViQuAD dump with Anserini.
TrainRanker.ipynb
or you can download the trained model herer link
Inference.ipynb
Expected results:
## XLM-Roberta_Large
{'exact_match': 52.67, 'f1': 60.26, 'recall': 59.98,'precision': 67.54}
'''
## XLM-Roberta_Base:
{'exact_match': 35.75, 'f1': 45.54, 'recall': 45.52, 'precision': 49.05}
uvicorn backend:app --port 8088
streamlit run demo_app.py --server.port 8087