Pipeline for Question Answering: How to return multiple correct answers output?
Very simple question I'm using transformer pipelines question answering on a very long piece of text. And, it is the cases that the are are multiple cases for the correct answer. I want them all.

I was wondering if I could retrieve the 10 best scores of output instead of just one.

Many thanks. 
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
<|||||>I need a solution to this problem as well please help

Thanks.<|||||>The solution is to use the `topk` parameter, for example, following the example in https://huggingface.co/transformers/task_summary.html about question answering, if you want 3 answer:

` result = nlp(question="What is extractive question answering?", context=context, topk = 3)`<|||||>@fumpe Can this work for sagemaker? Actually I am trying to deploy this pipeline in sagemaker, how can we customize the topk parameter in that? (As Sagemaker works a bit differently), Sagemaker currently returns only 1 answer, and am unable to modify the parameters to increase the number of returned items. Thank you.

This is my model and pipeline setup in Sagemaker:
hub = {
'HF_MODEL_ID':'valhalla/t5-base-qa-qg-hl',
'HF_TASK':'text2text-generation'
}