code: def _prediction_from_string(self, probabilities, sentence):
      pred = Prediction()
      pred.labels[:] = self.codec.encode(sentence)
      pred.is_voted_result = False
      pred.logits = probabilities
      for c, l in zip(sentence, pred.labels):
          pred.positions.append(
              PredictionPosition(
                  chars=[
                      PredictionCharacter(
                          label=l, char=c, probability=1.0
                      )
                  ]
              )
          )
      return pred
  
file_path: calamari/calamari_ocr/ocr/model/ctcdecoder/ctc_decoder.py
imports: from abc import ABC, abstractmethod
  from dataclasses import field, dataclass
  from typing import List
  import numpy
  from paiargparse import pai_dataclass
  from tfaip.util.enum import StrEnum
  from calamari_ocr.ocr.predict.params import Prediction, PredictionPosition, PredictionCharacter
label_desc: Use image node_id 3 for calling the CTCDecoder obj's underlying member method code with example usage: obj._prediction_from_string(probabilities, sentence) and returns: pred