代码拉取完成,页面将自动刷新
#!/bin/bash
# Copyright xmuspeech (Author:Snowdar 2018-7-27 2020-06-30)
write_file=""
first=3 # <target/nontarget-field 1-based>
second=3 # <score-field 1-based>
. subtools/path.sh
. subtools/parse_options.sh
if [[ $# != 2 ]];then
echo "[exit] Num of parameters is not equal to 4"
echo "usage:$0 [--write-file \"\" | filepath] <trials> <score-file>"
exit 1
fi
trials=$1
score=$2
workout=`awk -v second=$second '{print $second}' $score | paste - <(awk -v first=$first '{print $first}' $trials ) | \
awk '{if(NF==2){print $0}}' | compute-eer - `
if [ "$write_file" != "" ];then
echo "$workout" > $write_file
fi
echo "EER% $workout"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。