Update metrics/rouge.py
Browse files- metrics/rouge.py +1 -1
metrics/rouge.py
CHANGED
@@ -9,7 +9,7 @@ from multiprocessing import Pool
|
|
9 |
|
10 |
def compute_rouge(predictions, references, rouge_types=None, use_stemmer=False):
|
11 |
if rouge_types is None:
|
12 |
-
rouge_types = ["rouge1", "rouge2"
|
13 |
|
14 |
scorer = rouge_scorer.RougeScorer(rouge_types=rouge_types, use_stemmer=use_stemmer)
|
15 |
with Pool() as p:
|
|
|
9 |
|
10 |
def compute_rouge(predictions, references, rouge_types=None, use_stemmer=False):
|
11 |
if rouge_types is None:
|
12 |
+
rouge_types = ["rouge1", "rouge2", "rougeL", "rougeLsum"]
|
13 |
|
14 |
scorer = rouge_scorer.RougeScorer(rouge_types=rouge_types, use_stemmer=use_stemmer)
|
15 |
with Pool() as p:
|