_OPT, metrics=metrics)
    return model


def text_classifier(
    name, train_data, preproc=None, multilabel=None, metrics=None, verbose=1
):
    &#34;&#34;&#34;
    ```
    Build and return a text classification model.

    Args:
        name (string): one of:
                      - &#39;fasttext&#39; for FastText model
                      - &#39;nbsvm&#39; for NBSVM model
                      - &#39;logreg&#39; for logistic regression using embedding layers
                      - &#39;bigru&#39; for