Skip to content

Commit

Permalink
[scripts] Fix misspelled variable in reverb script (kaldi-asr#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alicegaz authored and Bar-BY committed Jan 21, 2020
1 parent 59baf20 commit 475d7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj/s5/steps/data/reverberate_data_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def smooth_probability_distribution(set_list, smoothing_weight=0.0, target_sum=1
uniform_probability = 0
if num_unspecified > 0 and accumulated_prob < 1:
uniform_probability = (1 - accumulated_prob) / float(num_unspecified)
elif num_unspecified > 0 and accumulate_prob >= 1:
elif num_unspecified > 0 and accumulated_prob >= 1:
warnings.warn("The sum of probabilities specified by user is larger than or equal to 1. "
"The items without probabilities specified will be given zero to their probabilities.")

Expand Down

0 comments on commit 475d7db

Please sign in to comment.