Hashed BERT / SST-2 Sentiment Classify
One mint, one call: the main Sentiment Pin runs distilbert-base-uncased-finetuned-sst-2-english and returns POSITIVE or NEGATIVE with a receipt. SST-2 polarity only; sarcasm abstains. Canonical URL: https://huggingbay.xyz/answers/hashed-bert-sst2-sentiment-classify.
Call Bay Run's canonical Sentiment Pin with run_pin. It returns SST-2 polarity (POSITIVE or NEGATIVE) for plainly worded text and abstains with sentiment_ambiguous_sarcasm on a bounded sarcasm cue; other irony can be confidently wrong. The catalog card carries the weight hash; the receipt proves execution, not quality. Representative rows: unitary/toxic-bert, distilbert/distilbert-base-uncased-finetuned-sst-2-english, cross-encoder/nli-deberta-v3-xsmall, cross-encoder/ms-marco-TinyBERT-L2-v2, cross-encoder/ms-marco-MiniLM-L4-v2. Use each canonical citation URL plus metadata/card endpoints for current license, trust, hosting, and download state. Canonical URL: https://huggingbay.xyz/answers/hashed-bert-sst2-sentiment-classify.
Question: How do I run a hash-recorded DistilBERT SST-2 sentiment classifier as an API call?
One mint, one call: the main Sentiment Pin runs distilbert-base-uncased-finetuned-sst-2-english and returns POSITIVE or NEGATIVE with a receipt. SST-2 polarity only; sarcasm abstains.
One mint, one call
Binary sentiment for plain text with a receipt.
# 1. mint a $0 demo bearer (no signup)
TOKEN=$(curl -fsS -X POST https://run.huggingbay.xyz/oauth/token -H 'Content-Type: application/json' -d '{"grant_type":"urn:bay-run:grant-type:demo","scope":"mcp:demo"}' | python3 -c 'import sys,json;print(json.load(sys.stdin)["access_token"])')
# 2. the call
curl -fsS -X POST https://run.huggingbay.xyz/mcp/ -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"run_pin","arguments":{"pin_id":"route_1c7472e940dc02517f5af93792bf07ee","input":"This is wonderful."}}}'Example response:
{
"decision": {
"action": "label",
"label": "POSITIVE",
"reason_code": "classification_label_accepted"
},
"pin_id": "route_1c7472e940dc02517f5af93792bf07ee"
}Limits: SST-2 polarity only. Sarcasm, hedging, and mixed tone are not understood. Full contract: https://run.huggingbay.xyz/quickstart.
Answer pack JSON Citation pack License guide Ranking page
- unitary/toxic-bert: Model from Hugging Face for text classification: unitary/toxic-bert · transformers
- distilbert/distilbert-base-uncased-finetuned-sst-2-english: Model from Hugging Face: distilbert/distilbert-base-uncased-finetuned-sst-2-english
- cross-encoder/nli-deberta-v3-xsmall: Model from Hugging Face for zero shot classification: cross-encoder/nli-deberta-v3-xsmall · sentence transformers
- cross-encoder/ms-marco-TinyBERT-L2-v2: Model from Hugging Face for text ranking: cross-encoder/ms-marco-TinyBERT-L2-v2 · sentence transformers
- cross-encoder/ms-marco-MiniLM-L4-v2: Model from Hugging Face for text ranking: cross-encoder/ms-marco-MiniLM-L4-v2 · sentence transformers
- BAAI/bge-small-en-v1.5: Model from Hugging Face for feature extraction: BAAI/bge-small-en-v1.5 · sentence transformers
- lxyuan/distilbert-base-multilingual-cased-sentiments-student: Model from Hugging Face for text classification: lxyuan/distilbert-base-multilingual-cased-sentiments-student · transformers
Open interactive answer pack
Updated 2026-09-21 from the live catalog.