Skip to content

Commit

Permalink
Update active_pipeline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ignorejjj authored Dec 24, 2024
1 parent ea7b03c commit 5472d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashrag/pipeline/active_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def judge_retrieve(self, input_prompts):
score_dict = {}
for tok, tok_id in self.ret_tokens.items():
if tok_id not in all_pred_log_probs[idx][0]:
score_dict[tok] = -100
score_dict[tok] = np.exp(-100)
else:
prob = all_pred_log_probs[idx][0][tok_id].logprob
score_dict[tok] = np.exp(prob)
Expand Down

0 comments on commit 5472d6e

Please sign in to comment.