fix count of lines in output, add name of original file to outputs

This commit is contained in:
Tykayn 2021-02-21 11:35:48 +01:00 committed by tykayn
parent 6fd015290c
commit fa3b6bc744
2 changed files with 8 additions and 1 deletions

7
.gitignore vendored
View File

@ -1,6 +1,13 @@
/models/fr/* /models/fr/*
/models/en/*
!/input/demo.wav !/input/demo.wav
/input/*.ogg
/input/*.mp4
/input/*.mkv
/input/*.flac
/input/*.mp3
/input/converted_to_wav/*.wav /input/converted_to_wav/*.wav
/input/already_converted/*
/output/**/*.txt /output/**/*.txt
/output/**/*.csv /output/**/*.csv
/output/**/*.json /output/**/*.json

View File

@ -47,7 +47,7 @@ sed 's/^ *//; s/ *$//; /^$/d' $OUT_DIR/2_without_nulls_$FILE_NAME.txt > $OUT_DIR
sed 's/\"//g' $OUT_DIR/3_without_nulls_$FILE_NAME.txt > $OUT_DIR/4_phrases_$FILE_NAME.txt sed 's/\"//g' $OUT_DIR/3_without_nulls_$FILE_NAME.txt > $OUT_DIR/4_phrases_$FILE_NAME.txt
echo "########### $(date) : OK " echo "########### $(date) : OK "
echo " " echo " "
COUNT_LINES=$(cat $OUT_DIR/phrases_$FILE_NAME.txt |wc -l) COUNT_LINES=$(cat $OUT_DIR/4_phrases_$FILE_NAME.txt |wc -l)
cat $OUT_DIR/4_phrases_$FILE_NAME.txt cat $OUT_DIR/4_phrases_$FILE_NAME.txt
echo " " echo " "
echo "########### $(date) : lignes transcriptes $COUNT_LINES " echo "########### $(date) : lignes transcriptes $COUNT_LINES "