diff --git a/wyniki_zad2.sh b/wyniki_zad2.sh new file mode 100755 index 0000000..c58be58 --- /dev/null +++ b/wyniki_zad2.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +pushd zad/24/2 + +echo "Wyniki dla test-A:" + +IFS=$'\n' +for d in $(wc -l */*.tsv | grep $(cat ~/sport-text-classification-ball-dont-peek/test-A/expected.tsv | wc -l) | sed 's/^[0-9 ]\+//' | sed 's|/[a-z]\+.tsv$||' | sort -u) +do + geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print(x, '\t', math.ceil(float(x) * 7.0), end='\t')" + echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/' +done + +echo +echo "Wyniki dla dev-0:" + +IFS=$'\n' +for d in $(wc -l */*.tsv | grep $(cat ~/sport-text-classification-ball-dont-peek/dev-0/expected.tsv | wc -l) | sed 's/^[0-9 ]\+//' | sed 's|/[a-z]\+.tsv$||' | sort -u) +do + geval -t $d | python3 -c "import sys, math; x=sys.stdin.read().strip(); print(x, '\t', math.ceil(float(x) * 7.0), end='\t')" + echo $d | sed 's/_[0-9]\+_assignsubmission_file_$/\t/' +done + +popd \ No newline at end of file