class_docstr: Create an encoder over `module` that can process a full sentence.
class_docstr_tok: ["Create","an","encoder","over","`","module","`","that","can","process","a","full","sentence","."]
code: def __init__(
      self,
      bptt: int,  # Backpropagation through time
      module: nn.Module,  # A module that can process up to [`bs`, `bptt`] tokens
      pad_idx: int = 1,  # Padding token id
      max_len: int = None,  # Maximal output length
  ):
      store_attr("bptt,module,pad_idx,max_len")
  
imports: from __future__ import annotations
  from ...data.all import *
  from ..core import *
  from .awdlstm import *
label_desc: Use image node_id 1 to create a new SentenceEncoder object from inherited base classes: Module with example: obj = SentenceEncoder(bptt, module, pad_idx, max_len)