Skip to content

Commit

Permalink
codecov base
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenshansilvia committed Oct 2, 2024
1 parent 9eb9cc7 commit d509932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rageval/metrics/answer_correctness/_answer_chrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def _validate_data(
"""Validate the input dataset."""
super()._validate_data(pred_answers, ref_answers)
if not all(isinstance(answer, str) for answer in pred_answers):
raise ValueError("The type of pred_answers should be a string.")
raise ValueError("The type of pred_answers should be a string.") # pragma: no cover
if not all(isinstance(a, list) and all(isinstance(item, str) for item in a) for a in ref_answers):
raise ValueError("The type of ref_answers should be a list of strings.")
raise ValueError("The type of ref_answers should be a list of strings.") # pragma: no cover

def _compute_one(
self,
Expand Down

0 comments on commit d509932

Please sign in to comment.