Hotfix: add missing apply_whisper_normalization#1188
Conversation
…torConfig Signed-off-by: gzelenfroind <gzelenfroind@nvidia.com> Signed-off-by: George Zelenfroind <gzelenfroind@nvidia.com>
|
Some merge conflict was resolved incorrectly, fixing this |
📝 WalkthroughWalkthroughAdded a new boolean configuration flag Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile OverviewGreptile SummaryThis PR fixes a bug introduced in PR #1157 where the
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant AudioEvaluator
participant AudioEvaluatorConfig
participant evaluate_sample
participant evaluate_asr_pc
Client->>AudioEvaluator: eval_single(data_point)
AudioEvaluator->>AudioEvaluatorConfig: Initialize config
Note over AudioEvaluatorConfig: apply_whisper_normalization: bool = True
AudioEvaluator->>evaluate_sample: evaluate_sample(sample, config)
alt task_type == "ASR-PC"
evaluate_sample->>AudioEvaluatorConfig: config.apply_whisper_normalization
Note over evaluate_sample: mode = normalization_mode if apply_whisper_normalization else "none"
evaluate_sample->>evaluate_asr_pc: evaluate_asr_pc(reference, hypothesis, mode)
evaluate_asr_pc-->>evaluate_sample: metrics
end
alt task_type == "ASR"
evaluate_sample->>AudioEvaluatorConfig: config.apply_whisper_normalization
Note over evaluate_sample: mode = normalization_mode if apply_whisper_normalization else "none"
evaluate_sample->>evaluate_asr_pc: evaluate_asr(reference, hypothesis, mode)
evaluate_asr_pc-->>evaluate_sample: metrics
end
alt task_type == "ASR_LEADERBOARD"
evaluate_sample->>AudioEvaluatorConfig: config.apply_whisper_normalization
Note over evaluate_sample: mode = normalization_mode if apply_whisper_normalization else "none"
evaluate_sample->>evaluate_asr_pc: evaluate_asr(reference, hypothesis, mode)
evaluate_asr_pc-->>evaluate_sample: metrics
end
evaluate_sample-->>AudioEvaluator: updates
AudioEvaluator-->>Client: evaluation results
|
Signed-off-by: gzelenfroind <gzelenfroind@nvidia.com> Signed-off-by: George Zelenfroind <gzelenfroind@nvidia.com>
Signed-off-by: gzelenfroind <gzelenfroind@nvidia.com> Signed-off-by: George Zelenfroind <gzelenfroind@nvidia.com> Signed-off-by: dgitman <dgitman@nvidia.com>
add missing apply_whisper_normalization attribute to AudioEvaluator
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.