mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 15:48:05 +03:00
Fix vector initialisation, comments
git-svn-id: http://svn.statmt.org/repository/mira@3899 cc96ff50-19ce-11e0-b349-13d7f0bd23df
This commit is contained in:
parent
f431ea0557
commit
0280af11dd
@ -702,9 +702,12 @@ int main(int argc, char** argv) {
|
||||
if (historyOf1best) {
|
||||
// MODEL (for updating the history only, using dummy vectors)
|
||||
cerr << "Rank " << rank << ", run decoder to get " << 1 << "best wrt model score" << endl;
|
||||
cerr << "dummyFeatureValues.size: " << dummyFeatureValues.size() << endl;
|
||||
cerr << "batch position: " << batchPosition << endl;
|
||||
vector<const Word*> bestModel = decoder->getNBest(input, *sid, 1, 0.0, bleuScoreWeight,
|
||||
dummyFeatureValues[batchPosition], dummyBleuScores[batchPosition], true,
|
||||
distinctNbest, rank);
|
||||
cerr << "finished decoding." << endl;
|
||||
decoder->cleanup();
|
||||
oneBests.push_back(bestModel);
|
||||
cerr << "Rank " << rank << ", model length: " << bestModel.size() << " Bleu: " << dummyBleuScores[batchPosition][0] << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user