def __post_init__()

in src/fmeval/eval_algorithms/factual_knowledge.py [0:0]


    def __post_init__(self):
        if self.target_output_delimiter == "":
            raise EvalAlgorithmClientError(
                "Empty target_output_delimiter is provided. Please either provide a non-empty string, "
                "or set it to None."
            )
        if self.logical_operator not in ["OR", "AND"]:
            raise EvalAlgorithmClientError(
                'Invalid logical_operator is provided. The only valid inputs are strings "OR" and "AND".'
            )
        if self.target_output_delimiter in ["<OR>", "<AND>"] and self.target_output_delimiter != "<{}>".format(
            self.logical_operator
        ):
            logger.warning(
                f"The target_output_delimiter `{self.target_output_delimiter}` and logical_operator"
                f" `{self.logical_operator}` are not consistent."
            )