Hasan Iqbal
Made the imports more user friendly
ec53a03 unverified
raw
history blame contribute delete
444 Bytes
from openfactcheck import FactCheckerState, StandardTaskSolver, Solver
@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).
"""
def __init__(self, args):
super().__init__(args)
def __call__(self, state: FactCheckerState, *args, **kwargs):
return True, state