Skip to content

Commit 9e69742

Browse files
ktagowskiasawczyn
andauthored
refactor: Update embeddings/pipeline/flair_preprocessing_pipeline.py
Co-authored-by: Albert <[email protected]>
1 parent 4e957f2 commit 9e69742

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

embeddings/pipeline/flair_preprocessing_pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def _get_transformations(
114114
ClassEncodeColumnTransformation(column=self.target_column_name)
115115
)
116116

117-
to_flair_dataset_transformation = self._get_dataset_transformation(data_loader)
118-
if to_flair_dataset_transformation:
117+
if to_flair_dataset_transformation := self._get_dataset_transformation(data_loader):
119118
transformation = transformation.then(to_flair_dataset_transformation)
120119

121120
if self.sample_missing_splits:

0 commit comments

Comments
 (0)