src/fmeval/eval_algorithms/factual_knowledge.py [136:152]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def _get_score(
        self,
        target_output: str,
        model_output: str,
        score_fn: Callable[..., float],
        **fn_kwargs,
    ) -> float:
        """Compute a factual knowledge score for a target output and model output pair based
        on the score function.

        :param target_output: Target output.
        :param model_output: Model output.
        :param score_fn: One of the functions in FACTUAL_KNOWLEDGE_SCORES_TO_FUNCS.
        :returns: A computed factual knowledge score (0 or 1). See the docstring for
        `FactualKnowledge` for more details on what these numerical values represent.
        """
        possible_targets = target_output.split(self.target_output_delimiter)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/fmeval/eval_algorithms/qa_accuracy.py [213:233]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def _get_score(
        self,
        target_output: str,
        model_output: str,
        score_fn: Callable[..., float],
        **fn_kwargs,
    ) -> float:
        """Compute an accuracy score from target_output and model_output.

        :param target_output: A single string potentially containing multiple
            target output values. If there are multiple target output values,
            they will be separated by `target_output_delimiter`.
            For example, if valid target outputs for a question are ["UK", "England"]
            and the delimiter is "<OR>", then `target_output` will be "UK<OR>England".
        :param model_output: The model output.
        :param target_output_delimiter: The delimiter used to separate the possible
            target outputs within the `target_output` string.
        :param score_fn: One of the functions in QA_ACCURACY_SCORES_TO_FUNCS.
        :returns: A computed QA accuracy score.
        """
        possible_targets = target_output.split(self.target_output_delimiter)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



