def decode_hypothesis(self, hypotheses_list: List[Hypothesis]) -> List[Union[(Hypothesis, NBestHypotheses)]]:
    '\n        Decode a list of hypotheses into a list of strings.\n\n        Args:\n            hypotheses_list: List of Hypothesis.\n\n        Returns:\n            A list of strings.\n        '
    for ind in range(len(hypotheses_list)):
        prediction = hypotheses_list[ind].y_sequence
        if (type(prediction) != list):
            prediction = prediction.tolist()
        prediction = [p for p in prediction if (p != self.blank_id)]
        hypothesis = self.decode_tokens_to_str(prediction)
        hypotheses_list[ind].text = hypothesis
        if self.compute_hypothesis_token_set:
            hypotheses_list[ind].tokens = self.decode_ids_to_tokens(prediction)
    return hypotheses_list
Decode a list of hypotheses into a list of strings.

Args:
    hypotheses_list: List of Hypothesis.

Returns:
    A list of strings.
def decode_hypothesis(self, hypotheses_list: List[Hypothesis]) -> List[Union[(Hypothesis, NBestHypotheses)]]:
    '\n        Decode a list of hypotheses into a list of strings.\n\n        Args:\n            hypotheses_list: List of Hypothesis.\n\n        Returns:\n            A list of strings.\n        '
    for ind in range(len(hypotheses_list)):
        prediction = hypotheses_list[ind].y_sequence
        if (type(prediction) != list):
            prediction = prediction.tolist()
        prediction = [p for p in prediction if (p != self.blank_id)]
        hypothesis = self.decode_tokens_to_str(prediction)
        hypotheses_list[ind].text = hypothesis
        if self.compute_hypothesis_token_set:
            hypotheses_list[ind].tokens = self.decode_ids_to_tokens(prediction)
    return hypotheses_list