Skip to content

Commit

Permalink
[egs] invoke 'python2.7' not 'python' when using mmseg (#3244)
Browse files Browse the repository at this point in the history
  • Loading branch information
naxingyu authored and danpovey committed Apr 18, 2019
1 parent a2d0270 commit 299b111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions egs/hkust/s5/local/hkust_data_prep.sh
Expand Up @@ -75,7 +75,7 @@ cat $train_dir/transcripts.txt |\
sed -e 's/<noise>\(.\+\)<\/noise>/\1/g' |\
sed -e 's/((\([^)]\{0,\}\)))/\1/g' |\
local/hkust_normalize.pl |\
python local/hkust_segment.py |\
local/hkust_segment.py |\
awk '{if (NF > 1) print $0;}' > $train_dir/text || exit 1;

cat $dev_dir/transcripts.txt |\
Expand All @@ -84,7 +84,7 @@ cat $dev_dir/transcripts.txt |\
sed -e 's/<noise>\(.\+\)<\/noise>/\1/g' |\
sed -e 's/((\([^)]\{0,\}\)))/\1/g' |\
local/hkust_normalize.pl |\
python local/hkust_segment.py |\
local/hkust_segment.py |\
awk '{if (NF > 1) print $0;}' > $dev_dir/text || exit 1;

# some data is corrupted. Delete them
Expand Down
2 changes: 1 addition & 1 deletion egs/hkust/s5/local/hkust_segment.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2.7
#coding:utf-8

from __future__ import print_function
Expand Down

0 comments on commit 299b111

Please sign in to comment.