jenkinsfile

This commit is contained in:
unknown 2020-04-03 14:59:42 +02:00
parent 979cbc061f
commit 1a4236b9aa
2 changed files with 1 additions and 4 deletions

View File

@ -14,9 +14,7 @@ with open("helper.txt", "r") as f:
elif re.match(r'^Scores:.*', line):
helper = line.replace("Scores: (#C #S #D #I) ", "").split()
sum = int(helper[0]) + int(helper[1]) + int(helper[2]) + int(helper[3])
print(sum)
sum = ((float(helper[0]))/(float(sum))) * 100
print(sum)
globalPercent += sum
counter += 1
wer.write(lastId + " = " + str(sum) + "%\n")

View File

@ -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
head -15 wer.txt
head -5000 helper.txt
head -250 wer.txt