Files
drc-ners-nlp/src/ners/processing/batch/batch_config.py
T
2025-10-05 18:14:15 +02:00

14 lines
343 B
Python

from dataclasses import dataclass
@dataclass
class BatchConfig:
"""Configuration for batch processing"""
batch_size: int = 1000
max_workers: int = 4
checkpoint_interval: int = 5 # Save checkpoint every N batches
use_multiprocessing: bool = (
False # Use ProcessPoolExecutor instead of ThreadPoolExecutor
)