1 · Two independent on-device models (~153 MB combined)
Stage 1 · DistilBERT-NER
onnx-community/distilbert-NER-ONNX · token-classification · WASM q8 · 65.77 MB · Apache-2.0
Stage 2 · DeBERTa-v3-xsmall NLI
Xenova/nli-deberta-v3-xsmall · zero-shot-classification · WASM q8 · 87.25 MB · MIT
2 · Text & pipeline controls
Stage 2 questions per entity:
3 · Stage 1 — entities found
4 · Stage 2 — what each entity is, and how it is portrayed
| Type | Entity | Role (top hypothesis) | Tone toward entity | Sentence topic | Context sentence |
|---|---|---|---|---|---|
| Run the full pipeline to classify entities. | |||||
In this sentence, {entity} is {label}. and
The sentence is {positive|negative|neutral} about {entity}. — and softmaxes the
entailment logits across labels. Topics use This sentence is about {label}. once per sentence.
Label sets are type-specific (people get occupations, organizations get institution kinds). Scores are
relative among the offered labels, not calibrated probabilities.