- Timestamp:
- 2022-01-11T10:11:37+13:00 (2 years ago)
- Location:
- main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA--SMALL.sh
r35946 r35947 2 2 3 3 if [ $# = 0 ] ; then 4 ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "download_audio|compute_audio_features" --start 2015 --end 2015 5 # ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "scrape_contestants|download_audio|compute_audio_features" --start 2015 --end 2015 4 year=2015 5 else 6 year=$1 7 fi 6 8 7 else 8 ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "download_audio|compute_audio_features" $* 9 # ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "scrape_contestants|download_audio|compute_audio_features" $* 10 fi 9 /bin/rm -f "votes-$year.csv" 10 /bin/rm -f "contestants-$year.csv" 11 12 ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "scrape_contestants" --start $year --end $year 13 # ./07b-GENERATE-ESSENTIA-FEATURES-DATA.sh "download_audio|compute_audio_features" --start $year --end $year contestants-$year.csv 14 15 -
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/prepare/07b-GENERATE-ESSENTIA-FEATURES-DATA.sh
r35946 r35947 22 22 echo " compute_audio_features : $run_compute" 23 23 24 echo " Sleeping for 5 seconds, to give time to press ^C to stop"25 echo " ..."24 echo "" 25 echo "Sleeping for 5 seconds, to give time to press ^C to stop ..." 26 26 sleep 5 27 27 echo "... continuing" … … 100 100 if [ $# = 0 ] ; then 101 101 cd "$prep_dir" \ 102 && python3 ./main.py --start 1956 --end 1956 \ 103 && python3 ./main.py --start 1957 \ 102 && /bin/rm -f "votes-1956.csv" \ 103 && /bin/rm -f "contestants-1956.csv" \ 104 && python3 -u ./main.py --start 1956 --end 1956 \ 105 \ 106 && /bin/rm -f "votes-1957-${esc_cutoff_endyear}.csv" \ 107 && /bin/rm -f "contestants-1957-${esc_cutoff_endyear}.csv" \ 108 && python3 -u ./main.py --start 1957 --end $esc_cutoff_endyear \ 109 \ 110 && /bin/rm -f "votes-1956-${esc_cutoff_endyear}.csv" \ 111 && /bin/rm -f "contestants-1956-${esc_cutoff_endyear}.csv" \ 112 && python3 -u ./main.py --start 1956 --end $esc_cutoff_endyear \ 104 113 && cd .. 105 114 else 106 115 cd "$prep_dir" \ 107 && python3 ./main.py $* \116 && python3 -u ./main.py $* \ 108 117 && cd .. 109 118 fi … … 111 120 112 121 if [ $? = 0 ] && [ $run_download = "1" ] ; then 113 wget --no-check-certificate -nc -O "$prep_dir/contestants.csv" \114 122 #wget --no-check-certificate -nc -O "$prep_dir/contestants.csv" \ 123 # https://github.com/Spijkervet/eurovision_dataset/releases/download/2020.0/contestants.csv \ 115 124 125 if [ $# = 0 ] ; then 126 # append CSV fileanme to $* 127 set -- "$@" "contestants-1956-${esc_cutoff_endyear}.csv" 128 fi 129 116 130 cd "$prep_dir" \ 117 && python3 ./audio.py $* \131 && python3 -u ./audio.py $* \ 118 132 && cd .. 119 133 fi 120 134 121 135 if [ $? = 0 ] && [ $run_compute = "1" ] ; then 136 if [ $# = 0 ] ; then 137 # append CSV fileanme to $* 138 set -- "$@" "contestants-1956-${esc_cutoff_endyear}.csv" 139 fi 140 122 141 cd "$prep_dir" \ 123 && python3 ./audio_features.py $* \142 && python3 -u ./audio_features.py $* \ 124 143 && cd .. 125 144 fi
Note:
See TracChangeset
for help on using the changeset viewer.