Source code for openfactcheck.solvers.factool.all_pass_abstain_detector

from openfactcheck import FactCheckerState, StandardTaskSolver, Solver

[docs] @Solver.register("all_pass_abstain_detector", "response", "response") class AllPassAbstainDetector(StandardTaskSolver): """ A solver to detect if all the claims are abstained (i.e., no claim is made). """
[docs] def __init__(self, args): super().__init__(args)
def __call__(self, state: FactCheckerState, *args, **kwargs): return True, state