From 1a69dd603b6fce242ce2f1099b8e0ced0602a168 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Fri, 18 Oct 2019 10:51:26 +0200 Subject: [PATCH] During training, Parser evaluation is now based on UAS+LAS+Sentences / 3 --- trainer/src/TrainInfos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trainer/src/TrainInfos.cpp b/trainer/src/TrainInfos.cpp index b7a1c1b..3659dea 100644 --- a/trainer/src/TrainInfos.cpp +++ b/trainer/src/TrainInfos.cpp @@ -211,7 +211,7 @@ void TrainInfos::computeTrainScores(Config & c) for (auto & it : topologyPrinted) { if (it.first == "Parser") - addTrainScore(it.first, scoresFloat["MLAS"]); + addTrainScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"] + scoresFloat["Sentences"]) / 3); else if (it.first == "Tokenizer") addTrainScore(it.first, scoresFloat["Tokens"]); else if (it.first == "Tagger") @@ -267,7 +267,7 @@ void TrainInfos::computeDevScores(Config & c) for (auto & it : topologyPrinted) { if (it.first == "Parser") - addDevScore(it.first, scoresFloat["MLAS"]); + addDevScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"] + scoresFloat["Sentences"]) / 3); else if (it.first == "Tokenizer") addDevScore(it.first, scoresFloat["Tokens"]); else if (it.first == "Tagger") -- GitLab