From 40d7b94cce4ecdc6f28dc258a6dc05191a30e1dc Mon Sep 17 00:00:00 2001 From: "alicja.m.musial" Date: Fri, 3 Apr 2020 17:26:16 +0200 Subject: [PATCH] poprawki do obliczania metryk 25 --- WERcreator.py | 2 +- werAvCounter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WERcreator.py b/WERcreator.py index 13fa2ab..7e8649e 100644 --- a/WERcreator.py +++ b/WERcreator.py @@ -20,5 +20,5 @@ if __name__ == '__main__': if werC == 0: correctSentence +=1 - srr = correctSentence / sentenceNumber + srr = ( correctSentence / sentenceNumber ) * 100 srrOut.write(f'{srr:.5f}\n') diff --git a/werAvCounter.py b/werAvCounter.py index b473611..138a8e0 100644 --- a/werAvCounter.py +++ b/werAvCounter.py @@ -12,5 +12,5 @@ if __name__ == '__main__': sum += num lineCount += 1 - werAv = sum / lineCount + werAv = (sum / lineCount) * 100 werF.write(f'{werAv:.5f}\n')