You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use "pip install rouge" to install , and it automatically installs version 1.0.0
I got errors when running main.py
1.rouge.Rouge(metrics=['rouge-n', 'rouge-l'], max_n=2)
max_n is an unexpected param
rouge-n is not found
Then I delete them and run it again.
2.rouge_scores = self.rouge_evaluator.get_scores(rouge_pred, rouge_ref)
rouge_ref is an invalid parameter. The API get_scores takes rouge_ref as a list of str, but here rouge_ref is a list of list of str
Then I modify rouge_ref, and pass to get_scores a correct param
3.metrics_dict["rouge_1"] = rouge_scores["rouge-1"]["r"]
rouge_scores is a list, not a dict.
So, am I using the correct rouge?
The text was updated successfully, but these errors were encountered:
I use "pip install rouge" to install , and it automatically installs version 1.0.0
I got errors when running main.py
1.rouge.Rouge(metrics=['rouge-n', 'rouge-l'], max_n=2)
max_n is an unexpected param
rouge-n is not found
Then I delete them and run it again.
2.rouge_scores = self.rouge_evaluator.get_scores(rouge_pred, rouge_ref)
rouge_ref is an invalid parameter. The API get_scores takes rouge_ref as a list of str, but here rouge_ref is a list of list of str
Then I modify rouge_ref, and pass to get_scores a correct param
3.metrics_dict["rouge_1"] = rouge_scores["rouge-1"]["r"]
rouge_scores is a list, not a dict.
So, am I using the correct rouge?
The text was updated successfully, but these errors were encountered: