Zero-shot_Classification_of_News_Title

所属分类:聚类算法
开发工具:Python
文件大小:840KB
下载次数:0
上传日期:2019-01-14 11:15:20
上 传 者sh-1993
说明:  新闻标题的零镜头分类-IRTM NTU 2018最终项目
(Zero-shot Classification of News Title - Final Project for IRTM NTU 2018)

文件列表:
.vscode (0, 2019-01-14)
.vscode\settings.json (317, 2019-01-14)
LICENSE.md (1073, 2019-01-14)
configs (0, 2019-01-14)
configs\config_example.txt (28135, 2019-01-14)
configs\config_linear.txt (76131, 2019-01-14)
configs\config_transformer.txt (657, 2019-01-14)
data_loader.py (6394, 2019-01-14)
eval.py (3865, 2019-01-14)
net.py (7999, 2019-01-14)
remove.py (1132, 2019-01-14)
report.pdf (889676, 2019-01-14)
run_server.py (9537, 2019-01-14)
run_server.sh (43, 2019-01-14)
send_request.py (1426, 2019-01-14)
send_request_curl.sh (259, 2019-01-14)
train.py (8609, 2019-01-14)
util.py (255, 2019-01-14)

# 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](http://flask.pocoo.org/) - The python web framework used * [Redis](https://redis.io/) - In-memory cache ## Authors * **YenTing Lin** - [GitHub](https://github.com/adamlin120) ## License This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details ## Acknowledgments * pytorch_pretrained_bert is cloned from https://github.com/huggingface/pytorch-pretrained-BERT * Zero-shot classification for text is inspired by https://arxiv.org/abs/1712.05972

近期下载者

相关文件


收藏者