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

Quickfix

parent 0371f65f
No related branches found
No related tags found
No related merge requests found
......@@ -735,7 +735,10 @@ bool Config::Tape::headIsAtEnd() const
if (head >= ref.getLastIndex())
return true;
if (ProgramParameters::rawInput)
return !getHyp(0).empty() && getHyp(1).empty();
return !getRef(0).empty() && getRef(1).empty();
}
int Config::Tape::size()
......
......@@ -414,6 +414,9 @@ void Oracle::createDatabase()
movement = 1;
}
if (c.isFinal())
return std::string("");
return "MOVE " + newState + " " + std::to_string(movement);
},
[](Config &, Oracle *, const std::string &)
......@@ -451,6 +454,8 @@ void Oracle::createDatabase()
{
newState = "lemmatizer_lookup";
movement = 1;
if (c.isFinal())
return std::string("");
}
return "MOVE " + newState + " " + std::to_string(movement);
......@@ -591,6 +596,9 @@ void Oracle::createDatabase()
{
newState = "parser";
movement = 1;
if (c.isFinal())
return std::string("");
}
else if (previousState == "error_parser")
{
......@@ -654,6 +662,8 @@ void Oracle::createDatabase()
{
newState = "tagger";
movement = 1;
if (c.isFinal())
return std::string("");
}
else
newState = "unknown("+std::string(ERRINFO)+")("+previousState+")("+previousAction+")";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment