def __init__(self, model, LAYERS, INPUT_DIM, HIDDEN_DIM, VOCAB_SIZE, builder=dy.SimpleRNNBuilder):
    self.builder = builder(LAYERS, INPUT_DIM, HIDDEN_DIM, model)
    self.lookup = model.add_lookup_parameters((VOCAB_SIZE, INPUT_DIM))
    self.R = model.add_parameters((VOCAB_SIZE, HIDDEN_DIM))
    self.bias = model.add_parameters(VOCAB_SIZE)
def __init__(self, model, LAYERS, INPUT_DIM, HIDDEN_DIM, VOCAB_SIZE, builder=dy.SimpleRNNBuilder):
    self.builder = builder(LAYERS, INPUT_DIM, HIDDEN_DIM, model)
    self.lookup = model.add_lookup_parameters((VOCAB_SIZE, INPUT_DIM))
    self.R = model.add_parameters((VOCAB_SIZE, HIDDEN_DIM))
    self.bias = model.add_parameters(VOCAB_SIZE)