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')