bheinzerling / pyrouge

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

Deleting temp files is time-consuming #31

Open buptorange opened 5 years ago

buptorange commented 5 years ago

Could you add some lines to delete the rouge-config folder and parsed summaries folder which are left in /Temp after convert_and_evaluate() ? Clearing these folders is time-consuming (files are trivial and too many) and they easily occupied 8GB of disk C: .

mirandrom commented 4 years ago

You can try from pathlib import Path import shutil tmp_dir = Path(rouge._model_dir).parent shutil.rmtree(tmp_dir)