Skip to content

Commit 04a0c73

Browse files
authored
[scripts] make combine_short_segments.sh work with python3 (#3926)
1 parent 18b61c0 commit 04a0c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

egs/wsj/s5/utils/data/combine_short_segments.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if [ -f $srcdir/utt2uniq ]; then
134134
# they have to be merged into the same set, and we name that set 'a'
135135
# (in general, we take the lowest string in lexicographical order).
136136

137-
cat $dir/uniq_sets | LC_ALL=C python -c '
137+
cat $dir/uniq_sets | LC_ALL=C python3 -c '
138138
import sys;
139139
from collections import defaultdict
140140
uniq2orig_uniq = dict()
@@ -158,7 +158,7 @@ while changed:
158158
changed = True
159159
160160
for uniq in sorted(uniq2orig_uniq.keys()):
161-
print uniq, uniq2orig_uniq[uniq]
161+
print(uniq, uniq2orig_uniq[uniq])
162162
' > $dir/uniq_to_orig_uniq
163163
rm $dir/uniq_sets
164164

0 commit comments

Comments
 (0)