class_docstr: Extract answer and create answer start and end positions in characters from subtoken positions.
class_docstr_tok: ["Extract","answer","and","create","answer","start","and","end","positions","in","characters","from","subtoken","positions","."]
code: def get_char_position(sub2c, sub_pos):
      keys = list(sub2c.keys())
      found_idx = bisect.bisect(keys, sub_pos)
      if found_idx == 0:
          return sub2c[keys[0]]
  
      return sub2c[keys[found_idx - 1]]
  
file_path: DeepPavlov/deeppavlov/models/preprocessors/squad_preprocessor.py
imports: import bisect
  from logging import getLogger
  from typing import List, Dict
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 3 for calling the SquadBertAnsPostprocessor obj's underlying member method code with example usage: obj.get_char_position(sub2c, sub_pos) and returns: sub2c, sub2c