mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
remove unnecessary files
This commit is contained in:
parent
ea1d9b20a8
commit
10504555c2
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
summary_file="summary_results.txt"
|
|
||||||
> "$summary_file"
|
|
||||||
|
|
||||||
for file in wer-summary-valid-*-epoch-*-avg-*.txt; do
|
|
||||||
# Extract epoch and avg values from the filename
|
|
||||||
epoch=$(echo "$file" | grep -oP 'epoch-\K[0-9]+')
|
|
||||||
avg=$(echo "$file" | grep -oP 'avg-\K[0-9]+')
|
|
||||||
|
|
||||||
# Extract the WER value from the second line of the file
|
|
||||||
wer=$(awk 'NR==2 {print $2}' "$file")
|
|
||||||
|
|
||||||
# Append the results to the summary file
|
|
||||||
echo "epoch $epoch avg $avg greedy_search $wer" >> "$summary_file"
|
|
||||||
done
|
|
Loading…
x
Reference in New Issue
Block a user