_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)
    # QUICKFIX for #314
    preproc.ytransform.le = ytransdf.le
    return (trn, val, preproc)</code></pre>
</details>
</dd>
<dt id="ktrain.text.data.texts_from_folder"><code class="name flex">
<span>def <span class="ident">texts_from_folder</span></span>(<span>datadir, classes=None, max_features