dgm_latent_bow icon indicating copy to clipboard operation
dgm_latent_bow copied to clipboard

Does this project need a specific version of rouge?

Open manhongxiang opened this issue 4 years ago • 2 comments

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?

manhongxiang avatar Apr 22 '20 09:04 manhongxiang

https://github.com/FranxYao/dgm_latent_bow/issues/5#issue-549934100

nathias2004 avatar Apr 22 '20 09:04 nathias2004

#5 (comment)

Thank you. It works.

manhongxiang avatar Apr 22 '20 11:04 manhongxiang