jenkinsfile
This commit is contained in:
parent
979cbc061f
commit
1a4236b9aa
@ -14,9 +14,7 @@ with open("helper.txt", "r") as f:
|
|||||||
elif re.match(r'^Scores:.*', line):
|
elif re.match(r'^Scores:.*', line):
|
||||||
helper = line.replace("Scores: (#C #S #D #I) ", "").split()
|
helper = line.replace("Scores: (#C #S #D #I) ", "").split()
|
||||||
sum = int(helper[0]) + int(helper[1]) + int(helper[2]) + int(helper[3])
|
sum = int(helper[0]) + int(helper[1]) + int(helper[2]) + int(helper[3])
|
||||||
print(sum)
|
|
||||||
sum = ((float(helper[0]))/(float(sum))) * 100
|
sum = ((float(helper[0]))/(float(sum))) * 100
|
||||||
print(sum)
|
|
||||||
globalPercent += sum
|
globalPercent += sum
|
||||||
counter += 1
|
counter += 1
|
||||||
wer.write(lastId + " = " + str(sum) + "%\n")
|
wer.write(lastId + " = " + str(sum) + "%\n")
|
||||||
|
@ -10,6 +10,5 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std
|
|||||||
|
|
||||||
python ./createWERandSRRFiles.py
|
python ./createWERandSRRFiles.py
|
||||||
|
|
||||||
head -15 wer.txt
|
head -250 wer.txt
|
||||||
head -5000 helper.txt
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user