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

When doing a splitTransition, add to Form the content of the rawInput and not...

When doing a splitTransition, add to Form the content of the rawInput and not the first word of the splitTransition
parent 3ada140d
Branches
Tags
No related merge requests found
......@@ -314,8 +314,9 @@ void Transition::initSplitWord(std::vector<std::string> words)
sequence.emplace_back(Action::assertIsEmpty(Config::idColName, Config::Object::Buffer, 0));
sequence.emplace_back(Action::assertIsEmpty("FORM", Config::Object::Buffer, 0));
sequence.emplace_back(Action::addLinesIfNeeded(words.size()));
sequence.emplace_back(Action::addCharsToCol("FORM", consumedWord.size(), Config::Object::Buffer, 0));
sequence.emplace_back(Action::consumeCharacterIndex(consumedWord));
for (unsigned int i = 0; i < words.size(); i++)
for (unsigned int i = 1; i < words.size(); i++)
sequence.emplace_back(Action::addHypothesisRelativeRelaxed("FORM", Config::Object::Buffer, i, words[i]));
sequence.emplace_back(Action::setMultiwordIds(words.size()-1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment