QAML (/ˈkæməl/, Question-writing Aided by Machine Learning) is an interface for adversarial question-writing enhanced by the QANTA QA dataset.
Front end: Vue.js
Back end: Flask
Database: MySQL
- Clone the Repo
- cd into the repo in your terminal
Please try our new model download script first! If there are any problems, you can revert to installing them manually.
With Script:
cd Flask
pip install -r requirements.txt
python3 download.py
Without Script:
- Download the following model.pickle Place it in
QAML\Flask\model
- Download the following difficulty_classifier Unzip it and place it in
QAML\Flask\model\difficulty_models
- Download the following and place ALL of them in
QAML\Flask\model\pronunciation_models\
Please consider using sample questions in this Google Doc to test the interface https://docs.google.com/document/d/1hJZDDQGI3GuTFqO1_Ogya_OK7yRx-mSiB0Cpp7dt3yg/edit?usp=sharing
npm install
npm install -g @vue/cli
npm install -g [email protected]
If this does not work check out the guide below to try and install another way.
- Follow this link to install vue.js we recommend the production version as it has proper warnings for development.
We recomend that use a seperate Conda envorinment or pipenv environment for installing packages, however this is only a recommendation.
(2.5 Gb needed)
If Conda:
- To install conda visit this link.
conda create --name QAML python=3.9
conda activate QAML
cd Flask
python3 -m spacy download en_core_web_sm
pip3 install -r requirements.txt
If no Conda:
cd Flask
python3 -m spacy download en_core_web_sm
pip3 install -r requirements.txt
- Navigate to the root directory
cd Flask
python3 run.py
- (In a seperate terminal) Navigate to the root directory
cd Vue
npm install
npm run dev
- no module named cython” error
- Try: https://pastebin.com/bB849hZ3
- Second try: Updating pip and setuptools
- Third try: https://pastebin.com/8BrK4W80
- Cython is a prerequisite for numpy I think, but a simple pip3 install cython should work