code: def __init__(self, ngram: int = 3, reduce_dim: bool = True):
      """
      Class initialization.
  
      :param ngram: By default use 3-gram (tri-letter).
      :param reduce_dim: Reduce to 1-D list for sentence representation.
      """
      self._ngram = ngram
      self._reduce_dim = reduce_dim
  
imports: from .unit import Unit
label_desc: Use image node_id 1 to create a new NgramLetter object from inherited base classes: Unit with example: obj = NgramLetter(ngram, reduce_dim)