This is a simple Flask API that returns alternative options (distractors) for an MCQ, given the correct answer. It uses Sense2Vec to determine the distractors.
- Download and unzip Sense2Vec vectors to your project folder.
!wget https://github.com/explosion/sense2vec/releases/download/v1.0.0/s2v_reddit_2015_md.tar.gz
!tar -xvf s2v_reddit_2015_md.tar.gz
- Install dependencies to your python environment.
pip install -r requirements.txt
- Start the server.
python server.py
(Default number of options is 5)
Replace london and 10 with your preferences.