Multi-model · Twitter-RoBERTa Emotion (128.99 MB q8) × Twitter-RoBERTa Sentiment (125.91 MB q8 · CC-BY-4.0) · 254.90 MB Total

2-Stage Social Affect Lab: 4-Emotion × 3-Sentiment Alignment & Divergence

Emotion and polarity tell two different stories. Stage 1 (cardiffnlp/twitter-roberta-base-emotion via onnx-community/twitter-roberta-base-emotion-ONNX, 128.99 MB WASM q8) predicts joy / optimism / anger / sadness, while Stage 2 reuses sibling ../twitter-roberta-base-sentiment-latest/worker.js (Xenova/twitter-roberta-base-sentiment-latest, 125.91 MB WASM q8, CC-BY-4.0) to surface emotion × neutral divergence (constructive optimism or quiet sadness hidden inside neutral polarity) alongside joyful-positive and angry-negative alignment.

1. Two Independent On-Device Models (~254.90 MB Combined)

Stage 1 · Twitter-RoBERTa Emotion (128.99 MB)

cardiffnlp/twitter-roberta-base-emotion → onnx-community/twitter-roberta-base-emotion-ONNX · q8 WASM (TweetEval mapping.txt corrected)

Stage 2 · Twitter-RoBERTa Sentiment (125.91 MB)

Reuses ../twitter-roberta-base-sentiment-latest/worker.js · Xenova/twitter-roberta-base-sentiment-latest · q8 WASM · CC-BY-4.0

Pick an alignment or divergence preset or write your own social post:

2. Live 4-Emotion × 3-Sentiment Alignment & Divergence Matrix

Alignment verdict: Initialize both models above and score a post to compare 4-class emotion against 3-class sentiment polarity.
Stage 1 Emotion–
Stage 2 Sentiment–
Valence / Polarity–
Stage 1 / Stage 2 ms–
NaN check–
4 by 3 Emotion by Sentiment alignment and divergence matrix highlighting the active combination
Emotion \ Sentiment Negative Neutral Positive

Stage 1 · 4-Class Emotion (Twitter-RoBERTa Emotion)

Run Stage 1 to inspect joy / optimism / anger / sadness scores.

Stage 2 · 3-Class Sentiment (Sibling Twitter-RoBERTa Sentiment)

Run Stage 2 to inspect negative / neutral / positive scores.

3. Inspect Sibling Worker Client & Alignment Matrix

Show the code · emotion-client.js — SiblingSentimentClient (reusing ../twitter-roberta-base-sentiment-latest/worker.js)
Show the code · emotion-core.mjs — alignEmotionAndSentiment()