We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b61c0 commit 04a0c73Copy full SHA for 04a0c73
egs/wsj/s5/utils/data/combine_short_segments.sh
@@ -134,7 +134,7 @@ if [ -f $srcdir/utt2uniq ]; then
134
# they have to be merged into the same set, and we name that set 'a'
135
# (in general, we take the lowest string in lexicographical order).
136
137
- cat $dir/uniq_sets | LC_ALL=C python -c '
+ cat $dir/uniq_sets | LC_ALL=C python3 -c '
138
import sys;
139
from collections import defaultdict
140
uniq2orig_uniq = dict()
@@ -158,7 +158,7 @@ while changed:
158
changed = True
159
160
for uniq in sorted(uniq2orig_uniq.keys()):
161
- print uniq, uniq2orig_uniq[uniq]
+ print(uniq, uniq2orig_uniq[uniq])
162
' > $dir/uniq_to_orig_uniq
163
rm $dir/uniq_sets
164
0 commit comments