1. Live Beam Ladder: num_beams 1 → 2 → 4
Choose a French grammar challenge or type your own sentence:
Greedy (num_beams = 1)
Highest-probability token at every step.
Beam (num_beams = 2)
Keeps the 2 best partial hypotheses.
Beam (num_beams = 4)
Model-card default: 4 hypotheses.
Word diff: greedy → beam 2
Word diff: greedy → beam 4
Strikethrough = only in the greedy output ·
Highlighted = chosen by beam search.
2. Elision, Accent & Compound Tokenizer Inspector
What am I looking at? analyzeFrenchText() finds the elided clitics
(l', qu', jusqu'…), hyphenated compounds and accented words in
your sentence; each is then sent through the model's real 59,514-piece SentencePiece tokenizer in the
worker. Elisions are tokenized twice — with the straight ' you type on a keyboard and the
typographic ’ French publishers use. In this ONNX export ’ is not in the
vocabulary and the converted Unigram tokenizer's unk_id is 2 — the id of the
, piece — so a curly apostrophe reaches the encoder as a comma. The Practical page
normalises ’ → ' for exactly this reason.
Subword statistics will appear once the ladder finishes.