Topic 09 · NLP & Sequence Models
Text Intelligence
Four NLP tasks, one model. DistilBERT runs entirely in your browser. Your text never leaves your device.
Click a task to load the model
Sentiment Analysis
What emotion does this text carry? Model: distilbert-base-uncased-finetuned-sst-2-english
Model: distilbert-base-uncased-finetuned-sst-2-english
Result will appear here…
What's happening under the hood
// Transformers.js — sentiment in 4 lines
import { pipeline } from '@huggingface/transformers';
const clf = await pipeline('sentiment-analysis');
const out = await clf('I love this!');
// → [{label: 'POSITIVE', score: 0.9998}]
Named Entity Recognition
Find people, organisations, locations, and dates in text.
Entities will be highlighted here…