class_docstr: Component that chooses a candidate with highest base probability for every token
  
      
docstr: Choose the best candidate for every token
  
  Args:
      batch: batch of probabilities and string values of candidates for every token in a sentence
  
  Returns:
      batch of corrected tokenized sentences
docstr_tok: ["Choose","the","best","candidate","for","every","token","Args",":","batch",":","batch","of","probabilities","and","string","values","of","candidates","for","every","token","in","a","sentence","Returns",":","batch","of","corrected","tokenized","sentences"]
code: def __call__(
      self, batch: List[List[List[Tuple[float, str]]]]
  ) -> List[List[str]]:
      """Choose the best candidate for every token
  
      Args:
          batch: batch of probabilities and string values of candidates for every token in a sentence
  
      Returns:
          batch of corrected tokenized sentences
      """
      return [
          [max(sublist)[1] for sublist in candidates]
          for candidates in batch
      ]
  
file_path: DeepPavlov/deeppavlov/models/spelling_correction/electors/top1_elector.py
imports: from logging import getLogger
  from typing import List, Tuple
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 2 for calling the TopOneElector obj's underlying member method code with example usage: obj.__call__(batch) and returns: unknown