use case · multi-model · GLiNER Small v2.1 (~183 MB) → DistilBERT SST-2 (~67 MB) · WASM · ~250 MB total

Aspect-Based Entity Sentiment Studio

Whole-document sentiment averages away mixed reviews: a reviewer can love the headphones and hate the companion app in the same paragraph. Here we chain two isolated Web Workers — Stage 1 (GLiNER Small v2.1) extracts your chosen entity types on-device, then Stage 2 (DistilBERT SST-2) reuses the existing sentiment-classifier/worker.js with zero weight duplication to score POSITIVE / NEGATIVE sentiment for every sentence mentioning each discovered entity.

1 · Two chained on-device models (isolated Web Workers)

Stage 1 · GLiNER Small v2.1 (~183 MB)

Zero-shot entity extractor (onnx-community/gliner_small-v2.1, q8 raw onnxruntime-web) discovering arbitrary target entity types.

Stage 2 · DistilBERT SST-2 (~67 MB)

Binary sentence sentiment classifier (Xenova/distilbert-base-uncased-finetuned-sst-2-english, q8) via the shared ../../sentiment-classifier/worker.js.

Prepare both models above (or load Stage 1 alone to inspect entities first).

2 · Review / news text, target entity types & pipeline controls

Target entity types for Stage 1 (click a chip to remove):

Stage 1 · GLiNERwaiting
Stage 2 · DistilBERTwaiting
Entities discovered–
Sentences scored–
Pos / Mix / Neg–

3 · Per-entity sentiment scorecards & annotated text

Run the 2-stage pipeline above to generate per-entity sentiment scorecards.

Stage 1 · Annotated source text

Preview formatted Markdown scorecard
Run the 2-stage pipeline above to generate a Markdown scorecard.