adamlin120 / Zero-shot_Classification_of_News_Title

Zero-shot Classification of News Title - Final Project for IRTM NTU 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zero-shot Classification of News Title

Getting Started

Prerequisites

GPU enabled environment is required.

numpy
PyTorch >= 1.0
pytorch_pretrained_bert

tqdm
redis
flask

Running the tests

User can get the prediction result by sending request to server.

Send Request

python3 send_request [--title TITLE] [--tags TAGS [TAGS ...]] [--api_url API_URL]

Deployment With

  • Flask - The python web framework used
  • Redis - In-memory cache

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Zero-shot Classification of News Title - Final Project for IRTM NTU 2018

License:MIT License


Languages

Language:Python 99.2%Language:Shell 0.8%