Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
"use strict";
const evalMetadata = {
owner: "ML Team",
name: "Synthetic Translation Eval",
description:
"Synthetic translation output to validate the evaluation harness wiring.",
test: "mochitest",
options: {
default: {
manifest: "eval.toml",
manifest_flavor: "browser-chrome",
evaluations: {
TranslationsBleu: { shouldAlert: false },
TranslationsChrf: { shouldAlert: false },
TranslationsLlmJudge: { shouldAlert: false },
},
perfherder: true,
},
},
};
function reportEvalData(data) {
info("evalDataPayload | " + JSON.stringify(data));
}
add_task(async function test_synthetic_translation_eval() {
const src = "Bonjour le monde";
const trg = "Hello the world";
const ref = "Hello world";
reportEvalData({
langPair: { src: "fr", trg: "en" },
src,
trg,
ref,
});
ok(true, "Synthetic eval result recorded.");
});