mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 06:08:13 +02:00
using underscore instead of spaces in result obj
This commit is contained in:
@ -59,8 +59,8 @@ document.getElementById("upload-btn").onclick = async () => {
|
|||||||
const scoreCell = row.insertCell(); // cell 3: bleu score
|
const scoreCell = row.insertCell(); // cell 3: bleu score
|
||||||
|
|
||||||
idCell.textContent = id;
|
idCell.textContent = id;
|
||||||
commentCell.innerHTML = `<span class='comment-cell'>${info["proposed comment"]}</span>`;
|
commentCell.innerHTML = `<span class='comment-cell'>${info["proposed_comment"]}</span>`;
|
||||||
scoreCell.textContent = info["max bleu score"].toFixed(4);
|
scoreCell.textContent = info["max_bleu_score"].toFixed(4);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ export const evaluate_comments = (answers, percent_cb) => {
|
|||||||
maxScore = Math.max(score, maxScore);
|
maxScore = Math.max(score, maxScore);
|
||||||
}
|
}
|
||||||
results[id] = {
|
results[id] = {
|
||||||
"max bleu score": maxScore,
|
max_bleu_score: maxScore,
|
||||||
"bleu scores": scores,
|
bleu_scores: scores,
|
||||||
"proposed comment": generated_comment,
|
proposed_comment: generated_comment,
|
||||||
};
|
};
|
||||||
percent_cb(Math.floor((++i / total) * 100));
|
percent_cb(Math.floor((++i / total) * 100));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user