Vo Nhu Tu Anh
Upload 6 files
d76c0bc verified
|
Raw
History Blame Contribute Delete
639 Bytes
metadata
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

{"items": [{"id": "test", "text": "I love this product!"}]}

Response

{"items": [{"id": "test", "label": 1}]}

Labels: -1 = Negative, 0 = Neutral, 1 = Positive.