Construct the model.

def model(dropout, vocab, model_mode, output_size):
    """Construct the model."""

    textCNN = SentimentNet(dropout=dropout, vocab_size=len(vocab), model_mode=model_mode,\
                       output_size=output_size)
    textCNN.hybridize()
    return textCNN