From 96a0847b32f6284c23b6254b04d1b4e497526355 Mon Sep 17 00:00:00 2001 From: timoeller Date: Mon, 24 Feb 2020 16:26:59 +0100 Subject: [PATCH] Add comment --- haystack/reader/farm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haystack/reader/farm.py b/haystack/reader/farm.py index 55cbdbf2a..da430a537 100644 --- a/haystack/reader/farm.py +++ b/haystack/reader/farm.py @@ -222,7 +222,7 @@ class FARMReader: if a["score"] > best_score_answer: best_score_answer = a["score"] - + # only take n best candidates. Answers coming back from FARM are sorted with decreasing relevance. answers += answers_per_paragraph[:self.n_candidates_per_paragraph] # Calculate the score for predicting "no answer", relative to our best positive answer score