code: def __init__(
      self, pc_param, pc_embed, word_vocab, wdim, hdim, word_embed=None
  ):
      self.WS = [pc_param.add_parameters((hdim, wdim)) for _ in "iou"]
      self.US = [
          pc_param.add_parameters((hdim, 2 * hdim)) for _ in "iou"
      ]
      self.UFS = [
          pc_param.add_parameters((hdim, 2 * hdim)) for _ in "ff"
      ]
      self.BS = [pc_param.add_parameters(hdim) for _ in "iouf"]
      self.E = pc_embed.add_lookup_parameters(
          (len(word_vocab), wdim), init=word_embed
      )
      self.w2i = word_vocab
  
file_path: dynet/examples/treelstm/model.py
imports: import dynet
  import numpy
  import os
label_desc: Use image node_id 1 to create a new TreeLSTMBuilder object from inherited base classes: object with example: obj = TreeLSTMBuilder(pc_param, pc_embed, word_vocab, wdim, hdim, word_embed)