Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error fixed #3678

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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