bertweet-large / README.md
modelling-giants's picture
Upload 5 files
9300c0a verified
|
Raw
History Blame Contribute Delete
647 Bytes
---
title: Sentiment Classification API
emoji: πŸš€
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---
# Route C β€” BERTweet-large Sentiment API
Three-class sentiment classifier (`-1` negative, `0` neutral, `1` positive)
served via Flask + gunicorn on Hugging Face Spaces.
- Model: fine-tuned `vinai/bertweet-large`, weights stored fp16 (up-cast to
fp32 at CPU load time).
- Wrapper classes: `sentiment_deploy.py` (`BertweetVectorizer`,
`BertweetClassifier`).
POST a batch to `/`:
```
curl -d '{"items":[{"id":"test","text":"I love this!"}]}' \
-H "Content-Type: application/json" -X POST <space-url> | jq
```