class_docstr: Component for encoding all strings to utf8 codes
  
  Args:
      max_word_length: Max length of words of input and output batches.
      pad_special_char_use: Whether to use special char for padding  or not.
      word_boundary_special_char_use: Whether to add word boundaries by special chars or not.
      sentence_boundary_special_char_use: Whether to add word boundaries by special chars or not.
      reversed_sentense_tokens: Whether to use reversed sequences of tokens or not.
      bos: Name of a special token of the begin of a sentence.
      eos: Name of a special token of the end of a sentence.
class_docstr_tok: ["Component","for","encoding","all","strings","to","utf8","codes","Args",":","max_word_length",":","Max","length","of","words","of","input","and","output","batches",".","pad_special_char_use",":","Whether","to","use","special","char","for","padding","or","not",".","word_boundary_special_char_use",":","Whether","to","add","word","boundaries","by","special","chars","or","not",".","sentence_boundary_special_char_use",":","Whether","to","add","word","boundaries","by","special","chars","or","not",".","reversed_sentense_tokens",":","Whether","to","use","reversed","sequences","of","tokens","or","not",".","bos",":","Name","of","a","special","token","of","the","begin","of","a","sentence",".","eos",":","Name","of","a","special","token","of","the","end","of","a","sentence","."]
docstr: Recursively search for strings in a list and utf8 encode
  
  Args:
      batch: a string or a list containing strings
  
  Returns:
      the same structure where all strings are utf8 encoded
docstr_tok: ["Recursively","search","for","strings","in","a","list","and","utf8","encode","Args",":","batch",":","a","string","or","a","list","containing","strings","Returns",":","the","same","structure","where","all","strings","are","utf8","encoded"]
code: def __call__(
      self, batch: Union[List[str], Tuple[str]]
  ) -> StrUTF8EncoderInfo:
      """Recursively search for strings in a list and utf8 encode
  
      Args:
          batch: a string or a list containing strings
  
      Returns:
          the same structure where all strings are utf8 encoded
      """
      if isinstance(batch, (list, tuple)):
          if isinstance(batch[-1], str):
              return self._encode_chars(batch)
          else:
              return [self(line) for line in batch]
      raise RuntimeError(
          f"The objects passed to the reverser are not list or tuple of str! "
          f" But they are {type(batch)}."
      )
  
imports: from collections import Counter, OrderedDict
  from itertools import chain
  from logging import getLogger
  from typing import Union, List, Tuple
  import numpy
  from deeppavlov.core.common.errors import ConfigError
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.estimator import Estimator
label_desc: Use image node_id 2 for calling the StrUTF8Encoder obj's underlying member method code with example usage: obj.__call__(batch) and returns: self, unknown