From e5f6deb8f9d2a8e8a7f14343bfb3c96ed602293d Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 17 May 2022 23:09:36 +0900 Subject: [PATCH] Remove writers --- backend/data_import/pipeline/writers.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 backend/data_import/pipeline/writers.py diff --git a/backend/data_import/pipeline/writers.py b/backend/data_import/pipeline/writers.py deleted file mode 100644 index a2a3037a..00000000 --- a/backend/data_import/pipeline/writers.py +++ /dev/null @@ -1,11 +0,0 @@ -from .readers import BaseReader -from projects.models import Project - - -class Writer: - def __init__(self, batch_size: int): - self.batch_size = batch_size - - def save(self, reader: BaseReader, project: Project, user, labeled_examples): - for batch in reader.batch(self.batch_size, labeled_examples): - batch.create(project, user)