add score logging

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@367 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
redpony 2006-07-28 22:42:17 +00:00
parent fb827cb544
commit ecabcbf0e0

View File

@ -108,6 +108,11 @@ int main(int argc, char* argv[])
InputOutput *inputOutput = GetInputOutput(staticData);
std::cerr << "The score component vector looks like this:\n" << staticData.GetScoreIndexManager();
std::cerr << "The global weight vector looks like this:\n";
vector<float> weights = staticData.GetAllWeights();
std::cerr << weights[0];
for (size_t j=1; j<weights.size(); j++) { std::cerr << ", " << weights[j]; }
std::cerr << "\n";
if (inputOutput == NULL)
return EXIT_FAILURE;