Predict using bash script

This commit is contained in:
Joseph Keshet
2016-06-29 19:28:06 -04:00
parent 0157652e53
commit 41e66f8bab
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ $# -eq 2 ]
then
tempfile=`mktemp -t txt`
python extract_features.py $1 $tempfile
th load_estimation_model.lua $tempfile $2
elif [ $# -eq 4 ]
then
tempfile=`mktemp -t txt`
python extract_features.py $1 $tempfile --begin $3 --end $4
th load_estimation_model.lua $tempfile $2
else
echo "$0 wav_filename pred_csv_filename [begin_time end_time]"
fi