Skip to content

Commit

Permalink
fix len
Browse files Browse the repository at this point in the history
  • Loading branch information
JINO-ROHIT committed Dec 9, 2024
1 parent 406531d commit 71ea920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentence_transformers/evaluation/NanoBEIREvaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def _load_dataset(self, dataset_name: DatasetNameType, **ir_evaluator_kwargs) ->
)

def _validate_dataset_names(self):
if self.dataset_names == []:
if len(self.dataset_names) == 0:
raise ValueError("dataset_names cannot be empty. Use None to evaluate on all datasets.")
if missing_datasets := [
dataset_name for dataset_name in self.dataset_names if dataset_name.lower() not in dataset_name_to_id
Expand Down

0 comments on commit 71ea920

Please sign in to comment.