Multi-model · DistilRoBERTa Financial Sentiment (82.76 MB q8 · Apache-2.0) × DeBERTa-v3 Zero-Shot Event NLI (87.3 MB q8 · Apache-2.0)

2-Stage Financial News Sentiment × Event/Sector Triage Matrix

Combine two independent WASM models totaling 170 MB offline: Stage 1 (Xenova/distilroberta-finetuned-financial-news-sentiment-analysis, 82.76 MB q8, Apache-2.0) scores 3-class Financial Polarity, while Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.3 MB q8, Apache-2.0, reusing ../../zero-shot-text/worker.js with dynamic res.classNames NLI mapping) classifies Event Category across Earnings, M&A, Guidance, Regulatory, Supply Chain.

Educational NLP Disclaimer: Multi-model polarity and event-category triage demonstrates chained in-browser NLP inference — NOT financial, trading, or investment advice.

1. Two Independent On-Device Models (170 MB Total)

Stage 1 · DistilRoBERTa Financial Sentiment (82.76 MB WASM q8 · Apache-2.0)

Stage 2 · DeBERTa-v3 Zero-Shot Event NLI (87.3 MB WASM q8 · Apache-2.0)

2. Market Headline Polarity × Event Category Triage

Initialize both stages above to run the 170 MB Sentiment × Event triage workflow.

Triage verdict: Run both stages above to pair Financial Polarity with Event Category.
Stage 1 Polarity–
Net Polarity–
Stage 2 Top Event–
Event Score–
Stage 1 / Stage 2 ms–
Stage 2 id2label order–

Stage 1 · Financial PhraseBank Probabilities

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

Stage 2 · Dynamic 3-Way NLI Event Logits (res.classNames)

Zero-shot NLI event probabilities mapped dynamically from res.classNames
Event Category Score Entailment Neutral Contradiction
Run Stage 2 to classify event category.

3. Polarity × Event Category Matrix Log

Every completed 2-stage triage run appends or updates in the live Polarity × Event table below.

Combined Sentiment x Event triage matrix rows
Preset / Item Stage 1 Polarity Net Polarity Stage 2 Event Latency Headline
Run the 2-stage pipeline above to populate the triage matrix.

4. Inspect Reused Zero-Shot Client & Dynamic NLI Mapping

Show the code · fin-news.js — ZeroShotEventClient (reusing ../zero-shot-text/worker.js)
Show the code · fin-news-core.mjs — mapNliClassProbabilities() (dynamic res.classNames)