bheinzerling / pyrouge

A Python wrapper for the ROUGE summarization evaluation package
MIT License
250 stars 71 forks source link

how to generate ROUGE scores for each sentence in the text? #16

Open 85405115 opened 6 years ago

85405115 commented 6 years ago

I want to do a supervised text summarization task on DUC2007. There are not any labels for this corpus and so I must generate ROUGE scores for all of the sentences in the corpus. how can I do this? should I put every sentence in a file? it is hard.

I use your pyrouge. but for example for pyrouge written in https://github.com/andersjo/pyrouge, there is a simple way for generating rouge score for any sentence. May you guide how can I produce ROUGE score for any sentence using your interface?

pltrdy commented 6 years ago

Note that I wrote a wrapper especially for this files2rouge.

Given a summaries.txt and references.txt files, it will calculate the ROUGE score between each lines.