From 48912288f96e0650dac08897e7c6be8b49f9bbd3 Mon Sep 17 00:00:00 2001 From: guipenedo Date: Thu, 5 Oct 2023 11:32:57 +0200 Subject: [PATCH] bugfix csv reader --- src/datatrove/pipeline/readers/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):