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

Added Oracle none

parent f2a2ac3c
No related branches found
No related tags found
No related merge requests found
......@@ -381,7 +381,6 @@ void Trainer::doStepTrain()
}
std::string normalClassifierName(buffer);
//ici
auto & errorHistory = trainConfig.getActionsHistory(tm.getCurrentClassifier()->name);
auto & normalHistory = trainConfig.getActionsHistory(normalClassifierName);
......
......@@ -97,7 +97,6 @@ void Oracle::createDatabase()
str2oracle.emplace("error_tagger", std::unique_ptr<Oracle>(new Oracle(
[](Oracle * oracle)
{
return;
File file(oracle->filename, "r");
FILE * fd = file.getDescriptor();
char b1[1024];
......@@ -156,7 +155,6 @@ void Oracle::createDatabase()
str2oracle.emplace("error_morpho", std::unique_ptr<Oracle>(new Oracle(
[](Oracle * oracle)
{
return;
File file(oracle->filename, "r");
FILE * fd = file.getDescriptor();
char b1[1024];
......@@ -222,7 +220,6 @@ void Oracle::createDatabase()
str2oracle.emplace("error_parser", std::unique_ptr<Oracle>(new Oracle(
[](Oracle * oracle)
{
return;
File file(oracle->filename, "r");
FILE * fd = file.getDescriptor();
char b1[1024];
......@@ -375,6 +372,19 @@ void Oracle::createDatabase()
return 0;
})));
str2oracle.emplace("none", std::unique_ptr<Oracle>(new Oracle(
[](Oracle *)
{
},
[](Config &, Oracle *)
{
return "NOTHING";
},
[](Config &, Oracle *, const std::string &)
{
return 0;
})));
str2oracle.emplace("lemma_lookup", std::unique_ptr<Oracle>(new Oracle(
[](Oracle * oracle)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment