pyrouge icon indicating copy to clipboard operation
pyrouge copied to clipboard

Deleting temp files is time-consuming

Open buptorange opened this issue 6 years ago • 1 comments

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: .

buptorange avatar Oct 09 '19 01:10 buptorange

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

mirandrom avatar Feb 01 '20 15:02 mirandrom