<reponame>fatemeh-azadi/Marian
#include <sstream>
#include "hypothesis.h"

using namespace std;

namespace amunmt {

std::string Debug(const Beam &vec, size_t verbosity)
{
  std::stringstream strm;

  strm << "size=" << vec.size();

  if (verbosity) {
    for (size_t i = 0; i < vec.size(); ++i) {
      const HypothesisPtr &hypo = vec[i];
      strm << " " << hypo->GetWord();
    }
  }

  return strm.str();
}

std::string Debug(const Beams &vec, size_t verbosity)
{
  std::stringstream strm;

  strm << "size=" << vec.size();

  if (verbosity) {
    for (size_t i = 0; i < vec.size(); ++i) {
      const Beam &beam = vec[i];
      strm << endl << "\t" << Debug(beam, verbosity);
    }
  }

  return strm.str();
}

}

