Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 12.4 KB

README.md

File metadata and controls

68 lines (43 loc) · 12.4 KB

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.