Tutorvo

BLEU by Hand: Geometric Mean, Add-One Smoothing, Brevity Penalty & Corpus Level

Lesson 3 of 817 minLab

This lesson is part of the course

In this lesson

You smooth four clipped precisions, combine them with a geometric mean written as EXP(AVERAGE(LN(…))), apply the brevity penalty and compare a sentence-level score with a corpus-level score for three sentences.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. Tokens as Rows: Unigram Counts, Matches, Precision & RecallLab14 min Locked
  2. N-Gram Precision with Clipping: Bigrams, Trigrams & Several ReferencesLab16 min Locked
  3. BLEU by Hand: Geometric Mean, Add-One Smoothing, Brevity Penalty & Corpus LevelLab17 min Locked
  4. ROUGE-1 & ROUGE-2: Recall, Precision & F1 against Several ReferencesLab16 min Locked
  5. ROUGE-L: Longest Common Subsequence, Recall, Precision & the F-Measure with βLab16 min Locked
  6. Question-Answer Scores: Exact Match, Token F1 & Partial CreditLab15 min Locked
  7. Length & Paraphrase Effects: Short Outputs, Same Meaning in Other Words & Character N-GramsLab16 min Locked
  8. Capstone: Do the Metrics Agree with People? Rank Correlation, Pearson & a System ComparisonLab20 min Locked