output length ratio..

This commit is contained in:
Eva HASLER 2011-10-26 10:44:06 +01:00
parent 7a5637f803
commit f56dd2ae1d

View File

@ -499,7 +499,7 @@ int main(int argc, char** argv) {
cerr << "Rank " << rank << ", epoch " << epoch << ", abs-length hope-fear: " << length_diff_hope_fear << ", BLEU hope-fear: " << bleuScoresHope[batchPosition][0] - bleuScoresFear[batchPosition][0] << endl;
if (max_length_deviation != -1 && (length_diff_hope >= max_length_deviation || length_diff_fear >= max_length_deviation || length_diff_hope_fear >= reference_length * max_length_deviation)) {
cerr << "Rank " << rank << ", epoch " << epoch << ", skip example (" << length_diff_hope << ", " << length_diff_fear << ", " << length_diff_hope_fear << ").. " << endl;
cerr << "Rank " << rank << ", epoch " << epoch << ", skip example (" << hope_length_ratio << ", " << fear_length_ratio << ", " << length_diff_hope_fear << ").. " << endl;
featureValuesHope[batchPosition].clear();
featureValuesFear[batchPosition].clear();
bleuScoresHope[batchPosition].clear();