1 · Lexicon

A supplied dictionary. Every matched word contributes a fixed score.
sum of matched word scores
very negativeneutralvery positive
Easy to inspect. Word order and most context are absent unless we add rules.

2 · TF-IDF + logistic regression

A linear classifier. TF-IDF features push the prediction up or down.
largest feature contributions
logit
The weights are learned from labeled examples, but the representation still ignores word order.

3 · Contextual model

The model sees the sentence as a sequence and returns a label with a confidence score.
Hugging Face pipeline-style output

    
    
These are the real outputs of DistilBERT SST-2, rounded to three decimals. Run the code on the course page to check them yourself.
Same input
one sentence
What changes
the measuring rule
What must stay
your validation set