this is a QASystem implemented with BERT
install with command
pip3 install -U tf-nightly-2.0-preview bert-for-tf2 flask
sudo apt install libboost-all-devdownload with the following command.
bash downloads.shput the questions and answers in format as question_answer.txt's. and execute following command to convert the collected samples into dataset format.
make && make install
./create_dataset -i question_answer.txt -o datasetwith directory dataset generated by the above command presented, finetune with the following to start finetune.
python3 Predictor.pyrun the QA system server by
FLASK_APP=server.py flask runstop the server by Ctrl+C
python3 test.py