eladsegal commited on
Commit
8ea0404
1 Parent(s): fd669ce

Update metrics/rouge.py

Browse files
Files changed (1) hide show
  1. metrics/rouge.py +0 -1
metrics/rouge.py CHANGED
@@ -31,7 +31,6 @@ def compute_rouge(predictions, references, rouge_types=None, use_aggregator=True
31
  return result
32
 
33
 
34
- # TODO: Check if it is necessary
35
  # Copied from https://github.com/huggingface/transformers/blob/3977b58437b8ce1ea1da6e31747d888efec2419b/examples/pytorch/summarization/run_summarization.py#L520
36
  def postprocess_text(text):
37
  # rougeLSum expects newline after each sentence
 
31
  return result
32
 
33
 
 
34
  # Copied from https://github.com/huggingface/transformers/blob/3977b58437b8ce1ea1da6e31747d888efec2419b/examples/pytorch/summarization/run_summarization.py#L520
35
  def postprocess_text(text):
36
  # rougeLSum expects newline after each sentence