code: def model(dropout, vocab, model_mode, output_size):
      
  
      textCNN = SentimentNet(dropout=dropout, vocab_size=len(vocab), model_mode=model_mode,\
                         output_size=output_size)
      textCNN.hybridize()
      return textCNN
docs: Construct the model.