len,
        max_features,
        class_names=class_names,
        lang=lang,
        ngram_range=ngram_range,
    )
    trn = preproc.preprocess_train(x_train, y_train, verbose=verbose)
    val = preproc.preprocess_test(x_test, y_test, verbose=verbose)
    if not preproc.get_classes() and verbose:
        print(
            &#34;task: text regression (supply class_names argument if this is supposed to be classification task)&#34;
        )
    else:
        print(&#34;task: text classification&#34;)
    r