class_docstr: Functor for parsing raw strings into list of int tokens.
  
  Examples:
      >>> parser = CharParser(['a', 'b', 'c'])
      >>> parser('abc')
      [0, 1, 2]
class_docstr_tok: ["Functor","for","parsing","raw","strings","into","list","of","int","tokens",".","Examples",":",">",">",">","parser","=","CharParser","(","[","'","a","'",",","'","b","'",",","'","c","'","]",")",">",">",">","parser","(","'abc","'",")","[","0",",","1",",","2","]"]
code: def __call__(self, text: str) -> Optional[List[int]]:
      if self._do_normalize:
          text = self._normalize(text)
          if text is None:
              return None
  
      if not self._do_tokenize:
          return text
  
      text_tokens = self._tokenize(text)
      return text_tokens
  
file_path: NeMo/nemo/collections/common/parts/preprocessing/parsers.py
imports: import string
  from typing import List, Optional
  from nemo.collections.common.parts.preprocessing import cleaners
label_desc: Use image node_id 2 for calling the CharParser obj's underlying member method code with example usage: obj.__call__(text) and returns: text_tokens, text, None