class_docstr: Convenience wrapper for Alphabet which calls init in the constructor
docstr: Encode a sequence of character/output classes into a sequence of labels.
  Characters are assumed to always take a single Unicode codepoint.
  Characters must be in the alphabet, this method will assert that. Use
  `CanEncode` and `CanEncodeSingle` to test.
docstr_tok: ["Encode","a","sequence","of","character\/output","classes","into","a","sequence","of","labels",".","Characters","are","assumed","to","always","take","a","single","Unicode","codepoint",".","Characters","must","be","in","the","alphabet",",","this","method","will","assert","that",".","Use","`","CanEncode","`","and","`","CanEncodeSingle","`","to","test","."]
code: def Encode(self, input):
      """
      Encode a sequence of character/output classes into a sequence of labels.
      Characters are assumed to always take a single Unicode codepoint.
      Characters must be in the alphabet, this method will assert that. Use
      `CanEncode` and `CanEncodeSingle` to test.
      """
      # Convert SWIG's UnsignedIntVec to a Python list
      res = super(Alphabet, self).Encode(input.encode("utf-8"))
      return [el for el in res]
  
imports: from __future__ import absolute_import, division, print_function
  from .None import swigwrapper
label_desc: Use image node_id 5 for calling the Alphabet obj's underlying member method code with example usage: obj.Encode(input) and returns: unknown