 #include <boost/program_options/options_description.hpp>
 #include <boost/program_options/parsers.hpp>
 #include <boost/program_options/variables_map.hpp>
+ #include <boost/algorithm/string.hpp>
 #include <boost/lexical_cast.hpp>
 
 #include "mblas/matrix.h"

      sentences2score.clear();
      for (; (nbestIndex < nbest.size()) && (sentences2score.size() < maxBatchSize); ++nbestIndex) {
        if (boost::lexical_cast<size_t>(nbest[nbestIndex][0]) == index) {
          std::string sentence = nbest[nbestIndex][1] + " </s>";
          sentences2score.push_back(tvcb.Encode(Split(sentence)));
        }
        else {

        std::cout
          << nbest[nbestIndex - sentences2score.size() + j][0] << " ||| "
          << nbest[nbestIndex - sentences2score.size() + j][1] << " ||| "
          << nbest[nbestIndex - sentences2score.size() + j][2] << " "
          << fname << "= " << scores[j] << " ||| "
          << nbest[nbestIndex - sentences2score.size() + j][3] << std::endl;
      }
