Vo Nhu Tu Anh
Upload 6 files
d76c0bc verified
|
Raw
History Blame Contribute Delete
639 Bytes
---
title: Sentiment Classification API
emoji: πŸš€
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---
# Sentiment Classification API (Route C β€” Ensemble)
Log-averaged BERTweet + twitter-roberta ensemble with per-class threshold
offsets. Serves a Flask API compatible with the case-manual template.
## Endpoints
- `GET /` β€” returns model metadata.
- `POST /` β€” classifies a batch of documents.
### Request
```json
{"items": [{"id": "test", "text": "I love this product!"}]}
```
### Response
```json
{"items": [{"id": "test", "label": 1}]}
```
Labels: `-1` = Negative, `0` = Neutral, `1` = Positive.