Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting temp files is time-consuming #31

Open
buptorange opened this issue Oct 9, 2019 · 1 comment
Open

Deleting temp files is time-consuming #31

buptorange opened this issue Oct 9, 2019 · 1 comment

Comments

@buptorange
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants