def model(dropout, vocab, model_mode, output_size):
textCNN = SentimentNet(dropout=dropout, vocab_size=len(vocab), model_mode=model_mode,output_size=output_size)<EOL>textCNN.hybridize()<EOL>return textCNN<EOL>
Construct the model.