text_eval_metrics
Text generation eval metrics (BLEU, ROUGE, chrF, F1, WER) — Score generated text against one or more references: candidate= and reference= (several references separated by ||; each up to 20,000 chars). Returns sacreBLEU-compatible sentence BLEU (13a tokenizer, exp smoothing, n-gram precisions, brevity penalty), ROUGE-1/2/L precision/recall/F1 (matches Google rouge-score), chrF2, SQuAD exact match and token F1, word and character error rates (WER/CER), plus overlap_score and band HIGH/MEDIUM/LOW. Optional lowercase=true for case-insensitive BLEU/chrF. Offline and deterministic; use it to evaluate LLM summaries, translations, extraction and QA answers. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"candidate": "<candidate>",
"reference": "<reference>"
},
"name": "text_eval_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidate | Yes | The cat sat on the mat. | |
| reference | Yes | The cat is sitting on the mat. |