Skip to content

Commit 18440f5

Browse files
committed
Remove unused code
Signed-off-by: Li, Tianmu <tianmu.li@intel.com>
1 parent 0864d0c commit 18440f5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/inference_endpoint/evaluation/scoring.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,6 @@ def postprocess_text(self, texts):
207207
texts = ["\n".join(nltk.sent_tokenize(text)) for text in texts]
208208
return texts
209209

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-
217210
def score(self) -> tuple[float, int]:
218211
df = self.get_outputs()
219212

0 commit comments

Comments
 (0)