← All models Β· Irony detection

use case Β· multi-model Β· Twitter-RoBERTa irony + DistilBERT SST-2

Irony + sentiment: recovering the true meaning

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

Surface sentiment (what the words say)

step 2 β€” Twitter-RoBERTa irony

Is it ironic?

step 3 β€” combine

True meaning

Why this is the interesting part

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.

← Irony detection Β· DistilBERT SST-2 β†’