This commit is contained in:
rjawor 2019-05-21 12:43:04 +02:00
parent 1b673f603d
commit 83c449e178

View File

@ -188,7 +188,7 @@ ExampleOccurrence UnitDAO::_getExampleOccurrence(DBconnection & connection, cons
connection.getStringValue(result,0,2), // target segment connection.getStringValue(result,0,2), // target segment
connection.getStringValue(result,0,7), // source name connection.getStringValue(result,0,7), // source name
connection.getStringValue(result,0,8)); // source link connection.getStringValue(result,0,8)); // source link
Logger::log("occurence got"); Logger::log("occurence got. Example id", occurence.getExampleId());
std::string targetTokensRaw = connection.getStringValue(result,0,5); std::string targetTokensRaw = connection.getStringValue(result,0,5);
Logger::log("target tokens got"); Logger::log("target tokens got");
@ -210,6 +210,7 @@ ExampleOccurrence UnitDAO::_getExampleOccurrence(DBconnection & connection, cons
for(int sourceTokenIndex = sOccurrence.getOffset(); sourceTokenIndex < sOccurrence.getOffset()+matchedLength; sourceTokenIndex++) { for(int sourceTokenIndex = sOccurrence.getOffset(); sourceTokenIndex < sOccurrence.getOffset()+matchedLength; sourceTokenIndex++) {
BOOST_FOREACH(int & targetTokenIndex, alignments.at(sourceTokenIndex)) { BOOST_FOREACH(int & targetTokenIndex, alignments.at(sourceTokenIndex)) {
matchedTargetTokens.insert(targetTokenIndex); matchedTargetTokens.insert(targetTokenIndex);
Logger::logInt("targetTokenIndex", targetTokenIndex);
} }
} }
Logger::log("matched target tokens computed"); Logger::log("matched target tokens computed");