mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
Code style adjustments
This commit is contained in:
parent
779ea6a015
commit
60618381f8
12 changed files with 94 additions and 81 deletions
8
src/documents/management/commands/document_create_classifier.py
Normal file → Executable file
8
src/documents/management/commands/document_create_classifier.py
Normal file → Executable file
|
|
@ -1,6 +1,4 @@
|
|||
import logging
|
||||
import os.path
|
||||
import pickle
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from documents.classifier import DocumentClassifier
|
||||
|
|
@ -19,9 +17,7 @@ class Command(Renderable, BaseCommand):
|
|||
|
||||
def handle(self, *args, **options):
|
||||
clf = DocumentClassifier()
|
||||
|
||||
clf.train()
|
||||
|
||||
logging.getLogger(__name__).info("Saving models to " + settings.MODEL_FILE + "...")
|
||||
|
||||
logging.getLogger(__name__).info("Saving models to " +
|
||||
settings.MODEL_FILE + "...")
|
||||
clf.save_classifier()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue