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

Parser is now evaluated by UAS and LAS scores, not Sentence segmentation

parent 3e58bb02
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,7 @@ void TrainInfos::computeTrainScores(Config & c) ...@@ -211,7 +211,7 @@ void TrainInfos::computeTrainScores(Config & c)
for (auto & it : topologyPrinted) for (auto & it : topologyPrinted)
{ {
if (it.first == "Parser") if (it.first == "Parser")
addTrainScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"] + scoresFloat["Sentences"]) / 3); addTrainScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"]) / 2);
else if (it.first == "Segmenter") else if (it.first == "Segmenter")
addTrainScore(it.first, scoresFloat["Sentences"]); addTrainScore(it.first, scoresFloat["Sentences"]);
else if (it.first == "Tokenizer") else if (it.first == "Tokenizer")
...@@ -269,7 +269,7 @@ void TrainInfos::computeDevScores(Config & c) ...@@ -269,7 +269,7 @@ void TrainInfos::computeDevScores(Config & c)
for (auto & it : topologyPrinted) for (auto & it : topologyPrinted)
{ {
if (it.first == "Parser") if (it.first == "Parser")
addDevScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"] + scoresFloat["Sentences"]) / 3); addDevScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"]) / 2);
else if (it.first == "Segmenter") else if (it.first == "Segmenter")
addDevScore(it.first, scoresFloat["Sentences"]); addDevScore(it.first, scoresFloat["Sentences"]);
else if (it.first == "Tokenizer") else if (it.first == "Tokenizer")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment