class_docstr: Vocabulary containing character-level information.
class_docstr_tok: ["Vocabulary","containing","character-level","information","."]
code: def _convert_word_to_char_ids(self, word):
      code = np.zeros([self.max_word_length], dtype=np.int32)
      code[:] = ord(self.pad_char)
  
      if len(word) > self.max_word_length - 2:
          word = word[: self.max_word_length - 2]
      cur_word = self.bow_char + word + self.eow_char
      for j in range(len(cur_word)):
          code[j] = ord(cur_word[j])
      return code
  
imports: import random
  import numpy
  from textattack.shared.utils import LazyLoader
label_desc: Use image node_id 4 for calling the CharsVocabulary obj's underlying member method code with example usage: obj._convert_word_to_char_ids(word) and returns: code