Skip to content

Commit

Permalink
add claimnum claimfaithfulness repetitiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenshansilvia committed Nov 15, 2024
1 parent 6d0b122 commit 798f57c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rageval/metrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def compute(
Return average scores of all inputs and a score list for each example.
"""
self._validate_data(pred_answers, ref_answers, *args)
scores = self._compute_batch(pred_answers, ref_answers, contexts, *args)
if contexts:
scores = self._compute_batch(pred_answers, ref_answers, contexts, *args)
else:
scores = self._compute_batch(pred_answers, ref_answers, *args)

return np.average(scores), scores

Expand Down

0 comments on commit 798f57c

Please sign in to comment.