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

crfsuite is spamming /tmp #50

Closed
severinsimmler opened this issue May 14, 2020 · 2 comments
Closed

crfsuite is spamming /tmp #50

severinsimmler opened this issue May 14, 2020 · 2 comments

Comments

@severinsimmler
Copy link

Where do the .crfsuite files in my /tmp folder come from? Can I delete those or prevent being created?

image

@ttresaui
Copy link

Do you have solved this?i have the same problem now.

@severinsimmler
Copy link
Author

No, but I think every time a sklearn_crfsuite.CRF object is initialized, sklearn-crfsuite creates this file for pycrfsuite. If your program crashes, this method won't get called:

def cleanup(self):
""" Clean temporary files if needed """
if self.keep_tempfiles or not self.auto:
return
if self.name is not None:
try:
os.close(self.fd)
os.unlink(self.name)
except OSError:
pass
self.name = None

TL;DR I'd say you can delete those files, because they are artifacts of unexpected terminations.

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