β All models Β· Irony detection
use case Β· multi-model Β· Twitter-RoBERTa irony + DistilBERT SST-2
Sentiment reads the words; irony tells you whether to believe them. Chain the two: score the surface sentiment with DistilBERT SST-2, check for sarcasm with Twitter-RoBERTa irony, and when the text is ironic, flip the polarity to recover what the writer actually meant. Both models run locally; nothing leaves the tab.
Each model initialises on its own below (cached copies auto-start, no button).
DistilBERT SST-2 β sentiment (~65 MB)
Twitter-RoBERTa β irony (~126 MB)
step 1 β DistilBERT SST-2
step 2 β Twitter-RoBERTa irony
step 3 β combine
Neither model can do this alone. Sentiment alone calls sarcastic praise "positive"; irony alone tells you something is off but not which way. The rule β if ironic and confident, invert the surface polarity β is a tiny piece of glue that turns two 100-MB classifiers into a sarcasm-aware sentiment reader. It's a toy rule (real systems would weight by confidence and defer to a human near the boundary), but it shows the compositional move: small local models, chained, beat any one of them.