ures,
            loss_func=loss_func,
            activation=activation,
            metrics=metrics,
            verbose=verbose,
            preproc=preproc,
        )

    else:
        raise ValueError(&#34;name for textclassifier is invalid&#34;)
    U.vprint(&#34;done.&#34;, verbose=verbose)
    return model


def _build_logreg(
    num_classes,
    maxlen,
    max_features,
    features,
    loss_func=&#34;categorical_crossentropy&#34;,
    activation=&#34;softmax&#34;,
    metrics=[&#34;accuracy&#3