Skip to content

Commit e6d5614

Browse files
Alicegazdanpovey
authored andcommitted
[scripts] Fix misspelled variable in reverb script (#3678)
1 parent 8151017 commit e6d5614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/wsj/s5/steps/data/reverberate_data_dir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def smooth_probability_distribution(set_list, smoothing_weight=0.0, target_sum=1
468468
uniform_probability = 0
469469
if num_unspecified > 0 and accumulated_prob < 1:
470470
uniform_probability = (1 - accumulated_prob) / float(num_unspecified)
471-
elif num_unspecified > 0 and accumulate_prob >= 1:
471+
elif num_unspecified > 0 and accumulated_prob >= 1:
472472
warnings.warn("The sum of probabilities specified by user is larger than or equal to 1. "
473473
"The items without probabilities specified will be given zero to their probabilities.")
474474

0 commit comments

Comments
 (0)