diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2013-09-14 11:46:57 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2013-09-14 11:46:57 +0400 |
commit | c463e49b988532a2d5cb83e77ef8c1b30714dae1 (patch) | |
tree | 050a3a95e6458fc44b76e59c1ee950d8c52a926f /moses/Util.cpp | |
parent | b3a5bac5cd8722f96806f5049a1128cfe5e5f866 (diff) |
code cleanup
Diffstat (limited to 'moses/Util.cpp')
-rw-r--r-- | moses/Util.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/moses/Util.cpp b/moses/Util.cpp index 87774640c..9e21d2406 100644 --- a/moses/Util.cpp +++ b/moses/Util.cpp @@ -127,8 +127,9 @@ std::vector< std::map<std::string, std::string> > ProcessAndStripDLT(std::string check_dlt = false; continue; } - std::string dlt = Trim(lline.substr(start+4, close-start-4)); -// std::cerr << "dlt:|" << dlt << "|" << endl; + //std::string dlt = Trim(lline.substr(start+4, close-start-4)); + std::string dlt = Trim(line.substr(start+4, close-start-4)); + std::cerr << "dlt:|" << dlt << "|" << endl; line.erase(start,close-start+2); lline.erase(start,close-start+2); @@ -139,8 +140,8 @@ std::vector< std::map<std::string, std::string> > ProcessAndStripDLT(std::string if (dlt[i] == '=') { std::string label = dlt.substr(0, i); std::string val = dlt.substr(i+1); -// std::cerr << "label:|" << label << "|" << endl; -// std::cerr << "val:|" << val << "|" << endl; + std::cerr << "label:|" << label << "|" << endl; + std::cerr << "val:|" << val << "|" << endl; if (val[0] == '"') { val = val.substr(1); // it admits any double quotation mark in the value of the attribute @@ -170,6 +171,7 @@ std::vector< std::map<std::string, std::string> > ProcessAndStripDLT(std::string dlt = Trim(dlt); tmp_meta[label] = val; + std::cerr << "tmp_meta:|" << tmp_meta[label] << "|" << endl; } } |