Skip to content

TheNewsQuest/alchemy-chapter

Repository files navigation

Alchemy Chapter - Alchemists are magicians!

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)!

Installation guide

Installing packages

pip install -r requirements.txt

Downloading data

Question-answer model

Download the multitask-qg-ag-v2 model checkpoint and place it in the app/ml_models/question_generation/models/ directory.

Distractor generation

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.

Test run

Run Flask

export FLASK_APP=api_gateway.py
export FLASK_ENV=development
flask run

Calling API

cd test
python test.py

Training on your own

The training scripts are available in the training directory.

About

Unveil the magical formula behind wonderful quest generation of the overall storyline!

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages