Skip to content

Commit

Permalink
Add more metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
cifkao committed Jul 9, 2024
1 parent b8f77b5 commit 2aa774b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/alt_eval/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ def compute_word_metrics(
"WER": wo.wer,
"MER": wo.mer,
"WIL": wo.wil,
"hits": wo.hits,
"substitutions": wo.substitutions,
"deletions": wo.deletions,
"insertions": wo.insertions,
"ER_case": error_counts["case"] / total_len,
"WER_case": wo.wer + error_counts["case"] / total_len,
}
if visualize_errors:
results["errors_html"] = vis_htmls
Expand Down

0 comments on commit 2aa774b

Please sign in to comment.