mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
output length ratio..
This commit is contained in:
parent
7a5637f803
commit
f56dd2ae1d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user