removed logging
This commit is contained in:
parent
f95f7591a4
commit
d289a24412
@ -47,7 +47,7 @@ std::string ConcordiaServer::handleRequest(std::string & requestString) {
|
|||||||
outputString << "Content-type: application/json\r\n\r\n";
|
outputString << "Content-type: application/json\r\n\r\n";
|
||||||
try {
|
try {
|
||||||
rapidjson::Document d;
|
rapidjson::Document d;
|
||||||
Logger::logString("concordia request string", requestString);
|
// Logger::logString("concordia request string", requestString);
|
||||||
bool hasError = d.Parse(requestString.c_str()).HasParseError();
|
bool hasError = d.Parse(requestString.c_str()).HasParseError();
|
||||||
|
|
||||||
if (hasError) {
|
if (hasError) {
|
||||||
@ -83,9 +83,6 @@ std::string ConcordiaServer::handleRequest(std::string & requestString) {
|
|||||||
targetSentences.push_back(examplesArray[i][2].GetString());
|
targetSentences.push_back(examplesArray[i][2].GetString());
|
||||||
alignments.push_back(_getInt2DArray(examplesArray[i][3]));
|
alignments.push_back(_getInt2DArray(examplesArray[i][3]));
|
||||||
sourceIds.push_back(examplesArray[i][4].GetInt());
|
sourceIds.push_back(examplesArray[i][4].GetInt());
|
||||||
Logger::logString("sourceSentence", examplesArray[i][0].GetString());
|
|
||||||
Logger::logString("lemmatizedSourceSentence", examplesArray[i][1].GetString());
|
|
||||||
Logger::logString("targetSentence", examplesArray[i][2].GetString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_indexController->addSentences(jsonWriter, sourceSentences, lemmatizedSourceSentences, targetSentences, alignments, sourceIds, tmId);
|
_indexController->addSentences(jsonWriter, sourceSentences, lemmatizedSourceSentences, targetSentences, alignments, sourceIds, tmId);
|
||||||
|
Loading…
Reference in New Issue
Block a user