Replies: 1 comment
-
Hey @dkbs12, you should pass this parameter in the the previous line.
You can find this information here: https://docs.haystack.deepset.ai/reference/reader-api |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to filter the result from the FARMReader as Basereader by using the confidence_threshold qrgument.
But, when I input confidence_threshold, I found the error message as below;
**from haystack.nodes import FARMReader
reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2", use_gpu=True)
reader_predict = reader.run(query="Who is the father of Arya Stark?", confidence_threshold=0.9, documents=filtered_documents, top_k=3)
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in <cell line: 1>:1 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: BaseReader.run() got an unexpected keyword argument 'confidence_threshold'**
Please let me know how to use the argument confidence_threshold.
thanks.
Beta Was this translation helpful? Give feedback.
All reactions