In this chapter, a magic spell will be used in order to cast arbitrary text content into wonderful quests! Be aware that this chapter can be quite heavy for setup and configuration as it's hard to do magic btw (for that reason, Docker is used to simplify the running process)!
pip install -r requirements.txt
Download the multitask-qg-ag-v2 model checkpoint and place it in the app/ml_models/question_generation/models/ directory.
Download the race-distractors model checkpoint and place it in the app/ml_models/distractor_generation/models/ directory.
Download sense2vec, extract it and place the s2v_old folder and place it in the app/ml_models/sense2vec_distractor_generation/models/ directory.
export FLASK_APP=api_gateway.py
export FLASK_ENV=development
flask run
cd test
python test.py
The training scripts are available in the training directory.
