Browse Source

Remove writers

pull/1823/head
Hironsan 2 years ago
parent
commit
e5f6deb8f9
1 changed files with 0 additions and 11 deletions
  1. 11
      backend/data_import/pipeline/writers.py

11
backend/data_import/pipeline/writers.py

@ -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)
Loading…
Cancel
Save