the document classifier is now stateless

This commit is contained in:
Jonas Winkler
2020-10-29 14:33:42 +01:00
parent 3e50e51b8a
commit 05f20c19c3
4 changed files with 12 additions and 19 deletions

View File

@@ -182,7 +182,6 @@ class Consumer:
try:
self.classifier.reload()
self.classifier.update(document)
classifier = self.classifier
except FileNotFoundError:
logging.getLogger(__name__).warning("Cannot classify documents, "