Skip to content

Commit

Permalink
Fixed bug in wers module
Browse files Browse the repository at this point in the history
  • Loading branch information
rossarmstrong committed Nov 9, 2023
1 parent 629b78c commit 4808e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion werpy/wers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def wers(reference, hypothesis):
transform_word_error_rate_breakdown = np.transpose(word_error_rate_breakdown.tolist())
wers_result = transform_word_error_rate_breakdown[0].tolist()
else:
wers_result = word_error_rate_breakdown[0].tolist()
wers_result = word_error_rate_breakdown[0]
return wers_result

0 comments on commit 4808e39

Please sign in to comment.