Skip to content

Commit b5cb672

Browse files
committed
skip positive
1 parent 3ea14a5 commit b5cb672

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

finetune-embedding/finetune_dataset.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def write_to_json(filename,finetuning_dataset):
7272

7373
if node["node"]["hash"] == pos_chunk["node"]["hash"]:
7474
hard = False
75+
continue
7576

7677
if hard:
7778
hard_negatives.append(node)

0 commit comments

Comments
 (0)