from openfactcheck.core.state import FactCheckerState | |
from openfactcheck.core.solver import StandardTaskSolver, Solver | |
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 | |