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