--- 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.