BLEUScorer
Computes BLEU (Bilingual Evaluation Understudy) score between prediction and ground truth. Measures n-gram precision with a brevity penalty, useful for machine translation and text summarization evaluation.
Overview
Computes BLEU (Bilingual Evaluation Understudy) score between prediction and ground truth. Measures n-gram precision with a brevity penalty, useful for machine translation and text summarization evaluation.
Use Cases
- Accuracy benchmarking and validation
How It Works
This scorer uses deterministic rule-based evaluation to validate outputs against specific criteria. It applies predefined rules and patterns to assess the response, providing consistent and reproducible results without requiring LLM inference.
Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| prediction | str | Yes | Generated text to evaluate |
| ground_truth | str | Yes | Reference text for comparison |
Output Schema
| Field | Type | Description |
|---|---|---|
| score | float | BLEU score scaled to 0-10 |
| passed | bool | True if above threshold |
| reasoning | str | Score breakdown |
| metadata | dict | N-gram precision details |
Score Interpretation
Default threshold: 7/10
Related Scorers
ROUGEScorer
Computes ROUGE scores for text summarization evaluation. Calculates ROUGE-1 (unigram), ROUGE-2 (bigr...
NLP MetricsLevenshteinSimilarityScorer
Computes similarity based on Levenshtein (edit) distance between prediction and ground truth. Measur...
AccuracyF1Scorer
Computes token-level F1 score between prediction and ground truth. Balances precision and recall, us...
AccuracyAccuracyScorer
Calculates accuracy based on substring or token-level matching between prediction and ground truth. ...
Frequently Asked Questions
When should I use this scorer?
Use BLEUScorer when you need to evaluate nlp-metrics and accuracy aspects of your AI outputs. It's particularly useful for accuracy benchmarking and validation.
Why does this scorer need expected output?
This scorer compares the generated output against a known expected result to calculate accuracy metrics.
Can I customize the threshold?
This scorer's displayed default threshold is 7. Where the eval-job configuration exposes a threshold, review it against the scorer's native scale before saving. The stored pass decision uses that scorer-specific configuration.
Quick Info
Ready to try BLEUScorer?
Start evaluating your AI agents with Noveum.ai's comprehensive scorer library.
Explore More Scorers
Discover 112 published scorers across 15 categories: 82 Premium, 30 Free, 76 model-backed, and 36 dedicated voice and audio scorers