You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know the confidence level of query results, however this is not made available.
I suggest to make a small change to get_query_answers in trp2.py:
def get_query_answers(self, page: TBlock) -> List[List[str]]:
result_list: List[List[str]] = list()
for query in self.queries(page=page):
answers = [x for x in self.get_answers_for_query(block=query)]
if answers:
for answer in answers:
result_list.append([query.query.text, query.query.alias, answer.text, answer.confidence])
else:
result_list.append([query.query.text, query.query.alias, "", 0])
This will make confidence available as fourth item in the return list and maintains compatibility with previous output.
The text was updated successfully, but these errors were encountered:
I would like to know the confidence level of query results, however this is not made available.
I suggest to make a small change to get_query_answers in trp2.py:
This will make confidence available as fourth item in the return list and maintains compatibility with previous output.
The text was updated successfully, but these errors were encountered: