code: def text_to_char_array(original, alphabet):
      r
      return np.asarray([alphabet.label_from_string(c) for c in original])
docs: r"""
      Given a Python string ``original``, remove unsupported characters, map characters
      to integers and return a numpy array representing the processed string.