Skip to content

Commit e5bbb5c

Browse files
committed
[docs] Fix CrossEncoderCorrelationEvaluator training overview snippet
1 parent 095de27 commit e5bbb5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/cross_encoder/training_overview.md

+1
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ Sometimes you don't have the required evaluation data to prepare one of these ev
532532
533533
# Load the STSB dataset (https://huggingface.co/datasets/sentence-transformers/stsb)
534534
eval_dataset = load_dataset("sentence-transformers/stsb", split="validation")
535+
pairs = list(zip(eval_dataset["sentence1"], eval_dataset["sentence2"]))
535536
536537
# Initialize the evaluator
537538
dev_evaluator = CrossEncoderCorrelationEvaluator(

0 commit comments

Comments
 (0)