Skip to content
Snippets Groups Projects
Commit f4f77d95 authored by Franck Dary's avatar Franck Dary
Browse files

Added error prediction score

parent 7616ceba
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,8 @@ void TrainInfos::computeTrainScores(Config & c)
addTrainScore(it.first, computeScoreOnTapes(c, {"MORPHO"}));
else if (it.first == "Lemmatizer_Rules")
addTrainScore(it.first, computeScoreOnTapes(c, {"LEMMA"}));
else if (split(it.first, '_')[0] == "Error")
addTrainScore(it.first, 100.0);
else
{
fprintf(stderr, "ERROR (%s) : No instructions to compute score of tool \'%s\'. Aborting.\n", ERRINFO, it.first.c_str());
......@@ -187,6 +189,8 @@ void TrainInfos::computeDevScores(Config & c)
addDevScore(it.first, computeScoreOnTapes(c, {"MORPHO"}));
else if (it.first == "Lemmatizer_Rules")
addDevScore(it.first, computeScoreOnTapes(c, {"LEMMA"}));
else if (split(it.first, '_')[0] == "Error")
addDevScore(it.first, 100.0);
else
{
fprintf(stderr, "ERROR (%s) : No instructions to compute score of tool \'%s\'. Aborting.\n", ERRINFO, it.first.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment