code: def get_char_indexes(self, word):
      result = []
      for c in word:
          char_id = self.char2id.get(c, len(self.char2id) - 1)
          result.append(char_id)
  
      return result
  
file_path: spark-nlp/python/sparknlp/training/_tf_graph_builders_1x/ner_dl/dataset_encoder.py
imports: import random
  import string
  import numpy
label_desc: Use image node_id 4 for calling the DatasetEncoder obj's underlying member method code with example usage: obj.get_char_indexes(word) and returns: result