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

Fixed oracle of lemmatizer lookup

parent 8a8b092e
No related branches found
No related tags found
No related merge requests found
...@@ -419,7 +419,7 @@ void Oracle::createDatabase() ...@@ -419,7 +419,7 @@ void Oracle::createDatabase()
{ {
const std::string & form = c.getTape("FORM").getRef(0); const std::string & form = c.getTape("FORM").getRef(0);
const std::string & lemma = c.getTape("LEMMA").getRef(0); const std::string & lemma = c.getTape("LEMMA").getRef(0);
std::string rule = getRule(form, lemma); std::string rule = getRule(toLowerCase(form), toLowerCase(lemma));
return (action == std::string("RULE LEMMA ON FORM ") + rule || c.endOfTapes()) ? 0 : 1; return (action == std::string("RULE LEMMA ON FORM ") + rule || c.endOfTapes()) ? 0 : 1;
}))); })));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment