From a0652237800e546acd57e9fab63f51b9c8999201 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Tue, 26 Nov 2019 13:40:15 +0100 Subject: [PATCH] Parser is now evaluated by UAS and LAS scores, not Sentence segmentation --- 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 ed52f74..8f8a8e3 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["UAS"] + scoresFloat["LAS"] + scoresFloat["Sentences"]) / 3); + addTrainScore(it.first, (scoresFloat["UAS"] + scoresFloat["LAS"]) / 2); else if (it.first == "Segmenter") addTrainScore(it.first, scoresFloat["Sentences"]); else if (it.first == "Tokenizer") @@ -269,7 +269,7 @@ void TrainInfos::computeDevScores(Config & c) for (auto & it : topologyPrinted) { 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") addDevScore(it.first, scoresFloat["Sentences"]); else if (it.first == "Tokenizer") -- GitLab