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

Fixed --devScore argument

parent 9e3b06af
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ void Decoder::evaluate(const Config & config, std::filesystem::path modelPath, c
config.print(predictedTSVFile);
std::fclose(predictedTSVFile);
std::FILE * evalFromUD = popen(fmt::format("{} {} {} -v", "../scripts/conll18_ud_eval.py", goldTSV, predictedTSV).c_str(), "r");
std::FILE * evalFromUD = popen(fmt::format("{} {} {}", "../scripts/conll18_ud_eval.py", goldTSV, predictedTSV).c_str(), "r");
char buffer[1024];
while (!std::feof(evalFromUD))
......
......@@ -230,7 +230,7 @@ int MacaonTrain::main()
std::vector<std::pair<float,std::string>> devScores;
if (computeDevScore)
{
auto devConfig = devGoldConfig;
BaseConfig devConfig(mcdFile, computeDevScore ? (devRawFile.empty() ? devTsvFile : "") : devTsvFile, devRawFile);
decoder.decode(devConfig, 1, 0.0, debug, printAdvancement);
decoder.evaluate(devConfig, modelPath, devTsvFile);
devScores = decoder.getF1Scores(machine.getPredicted());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment