diff --git a/src/datatrove/pipeline/readers/csv.py b/src/datatrove/pipeline/readers/csv.py index efeaaeed..ce7b80d4 100644 --- a/src/datatrove/pipeline/readers/csv.py +++ b/src/datatrove/pipeline/readers/csv.py @@ -24,7 +24,7 @@ def __init__( self.content_column = content_column self.id_column = id_column self.compression = compression - self.adapter = adapter if adapter else lambda d, path, li: self._base_adapter + self.adapter = adapter if adapter else self._base_adapter self.empty_warning = False def read_file(self, datafile: InputDataFile):