docstr: Encode the string into labels
  
  Parameters
  ----------
  s : str
      sequence of characters
  
  Returns
  -------
      sequence of labels
  
  See Also
  --------
      decode
docstr_tok: ["Encode","the","string","into","labels","Parameters","--","--","--","--","--","s",":","str","sequence","of","characters","Returns","--","--","--","-","sequence","of","labels","See","Also","--","--","--","--","decode"]
code: def encode(self, s):
      """Encode the string into labels
  
      Parameters
      ----------
      s : str
          sequence of characters
  
      Returns
      -------
          sequence of labels
  
      See Also
      --------
          decode
      """
      return [self.char2code[c] for c in s]
  
file_path: calamari/calamari_ocr/ocr/dataset/codec.py
imports: from dataclasses import dataclass, field
  from typing import List, TYPE_CHECKING, Iterator, Set
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.util.multiprocessing.parallelmap import tqdm_wrapper
  from tfaip.data.pipeline.definitions import PipelineMode
  from calamari_ocr.utils import glob_all
label_desc: Use image node_id 6 for calling the Codec obj's underlying member method code with example usage: obj.encode(s) and returns: unknown