Mercurial > hg > mirex2013
comparison structural_segmentation/segmentino/segmentino.sh @ 11:14844597d4d7
Add key detector task; use explicit directory for ttl files
author | Chris Cannam |
---|---|
date | Mon, 02 Sep 2013 15:45:15 +0100 |
parents | e5970597e220 |
children |
comparison
equal
deleted
inserted
replaced
10:45cef77776d7 | 11:14844597d4d7 |
---|---|
24 # To ensure both start and end times have the same number of | 24 # To ensure both start and end times have the same number of |
25 # significant digits, we'll do an addition in awk for both (hence | 25 # significant digits, we'll do an addition in awk for both (hence |
26 # the $2+0 for start time) | 26 # the $2+0 for start time) |
27 | 27 |
28 VAMP_PATH="$mydir" sonic-annotator \ | 28 VAMP_PATH="$mydir" sonic-annotator \ |
29 -t segmentino.ttl \ | 29 -t "$mydir"/segmentino.ttl \ |
30 -w csv --csv-stdout --csv-separator ";" \ | 30 -w csv --csv-stdout --csv-separator ";" \ |
31 "$infile" \ | 31 "$infile" \ |
32 | awk -F';' '{ gsub(/\"/, ""); print $2+0"\t"$2+$3"\t"$5 }' \ | 32 | awk -F';' '{ gsub(/\"/, ""); print $2+0"\t"$2+$3"\t"$5 }' \ |
33 > "$outfile" | 33 > "$outfile" |
34 | 34 |