使用FastAPI部署用于情感分析的BERT:使用FastAPI,通过拥抱Face和PyTorch的Transformers将BERT用于情感分析的REST API部署

时间:2021-02-05 00:48:00
【文件属性】:
文件名称:使用FastAPI部署用于情感分析的BERT:使用FastAPI,通过拥抱Face和PyTorch的Transformers将BERT用于情感分析的REST API部署
文件大小:20KB
文件格式:ZIP
更新时间:2021-02-05 00:48:00
python machine-learning rest deep-learning deployment 使用FastAPI部署用于情绪分析的BERT 使用FastAPI将预训练的BERT模型作为REST API进行情感分析 演示版 该模型经过训练,可以根据Google Play上的应用评论对自定义数据集上的情绪(消极,中立和积极)进行分类。 这是对API的示例请求: http POST http://127.0.0.1:8000/predict text= " Good basic lists, i would like to create more lists, but the annual fee for unlimited lists is too out there " 您会收到如
【文件预览】:
Deploy-BERT-for-Sentiment-Analysis-with-FastAPI-master
----.flake8(116B)
----.gitignore(2KB)
----README.md(1KB)
----Pipfile.lock(31KB)
----bin()
--------download_model(161B)
--------test_request(94B)
--------start_server(47B)
----config.json(210B)
----.vscode()
--------settings.json(425B)
----LICENSE(1KB)
----Pipfile(304B)
----sentiment_analyzer()
--------api.py(644B)
--------classifier()
----.isort.cfg(166B)

网友评论