The formula
BLEU = BP × exp( (1/N) Σ log pₙ ) × 100, where N is your max n-gram order, pₙ is the modified n-gram precision and BP is the brevity penalty. Weights are equal across orders.
- Tokens: split on whitespace, case-sensitive, punctuation not separated. Cat. and cat are different tokens.
- Multiple references: one per line; blank lines are ignored. Clipping uses the highest count in any single reference.
- Limits: up to 20,000 tokens per text and 50 reference lines; max n-gram must be a whole number from 1 to 4.