We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0864d0c commit 18440f5Copy full SHA for 18440f5
src/inference_endpoint/evaluation/scoring.py
@@ -207,13 +207,6 @@ def postprocess_text(self, texts):
207
texts = ["\n".join(nltk.sent_tokenize(text)) for text in texts]
208
return texts
209
210
- def score_single_sample(self, value: str, ground_truth: str) -> float:
211
- """Compute ROUGE-L F1 score between value and ground_truth."""
212
- # print("ground_truth:", ground_truth)
213
- # print("value:", value)
214
- # scores = self.rouge_scorer.score(ground_truth, value)
215
- # return scores['rougeL'].fmeasure
216
-
217
def score(self) -> tuple[float, int]:
218
df = self.get_outputs()
219
0 commit comments