Skip to content

All-in-one API service, serving multiple NLP tasks for system demo at NCHU NLP Lab.

License

Notifications You must be signed in to change notification settings

NCHU-NLP-Lab/api

Repository files navigation

NCHU NLP API

All-in-one API service, serving multiple NLP tasks for system demo at NCHU NLP Lab.

Services

Question Generation

Model Language Author Paper
p208p2002/bart-squad-qg-hl English Harry Chan (@Harry-Chan)
Philip Huang (@p208p2002)
EMNLP 20191
p208p2002/gpt2-drcd-qg-hl Traditional Chinese Harry Chan (@Harry-Chan)
Philip Huang (@p208p2002)

Distractor Generation

Model Language Author Paper
voidful/bart-distractor-generation English Eric Lam (@voidful) EMNLP 20202

Misc

  • Context-Question-Answer pair exporting

Deployment

Command to start is store in head of docker-compose.yml

Development

Setup

Run this on first time

  • Clone Repository
git clone https://github.com/NCHU-NLP-Lab/API.git
cd API
  • Install Dependencies
pip install -r requirements.txt
# or use poetry
poetry install

Launch

uvicorn server:app --reload

Export requirements.txt

Run this whenever dependencies are changed in pyproject.toml

poetry export -f requirements.txt --output requirements.txt --without-hashes

Author

Footnotes

  1. A Recurrent BERT-based Model for Question Generation

  2. A BERT-based Distractor Generation Scheme with Multi-tasking and Negative Answer Training Strategies.

About

All-in-one API service, serving multiple NLP tasks for system demo at NCHU NLP Lab.

Resources

License

Stars

Watchers

Forks

Packages