Skip to content

Commit

Permalink
Set top_k_per_candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenchan committed Aug 26, 2020
1 parent cca8676 commit b44b1ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tutorials/Tutorial5_Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"# Initialize Reader\n",
"from haystack.reader.farm import FARMReader\n",
"\n",
"reader = FARMReader(\"deepset/roberta-base-squad2\")"
"reader = FARMReader(\"deepset/roberta-base-squad2\", top_k_per_candidate=4)"
]
},
{
Expand Down Expand Up @@ -1957,4 +1957,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
2 changes: 1 addition & 1 deletion tutorials/Tutorial5_Evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@


# Initialize Reader
reader = FARMReader("deepset/roberta-base-squad2")
reader = FARMReader("deepset/roberta-base-squad2", top_k_per_candidate=4)

# Initialize Finder which sticks together Reader and Retriever
finder = Finder(reader, retriever)
Expand Down

0 comments on commit b44b1ac

Please sign in to comment.