poprawki do obliczania metryk 25

This commit is contained in:
alicja.m.musial 2020-04-03 17:26:16 +02:00
parent d31c196edc
commit 40d7b94cce
2 changed files with 2 additions and 2 deletions

View File

@ -20,5 +20,5 @@ if __name__ == '__main__':
if werC == 0: if werC == 0:
correctSentence +=1 correctSentence +=1
srr = correctSentence / sentenceNumber srr = ( correctSentence / sentenceNumber ) * 100
srrOut.write(f'{srr:.5f}\n') srrOut.write(f'{srr:.5f}\n')

View File

@ -12,5 +12,5 @@ if __name__ == '__main__':
sum += num sum += num
lineCount += 1 lineCount += 1
werAv = sum / lineCount werAv = (sum / lineCount) * 100
werF.write(f'{werAv:.5f}\n') werF.write(f'{werAv:.5f}\n')