,
    maxlen,
    max_features,
    features,
    loss_func=&#34;categorical_crossentropy&#34;,
    activation=&#34;softmax&#34;,
    metrics=[&#34;accuracy&#34;],
    verbose=1,
    tokenizer=None,
    preproc=None,
):
    if tokenizer is None:
        raise ValueError(&#34;bigru requires valid Tokenizer object&#34;)
    if preproc is None:
        raise ValueError(&#34;bigru requires valid preproc&#34;)
    if not hasattr(preproc, &#34;lang&#34;) or preproc.lang is None:
        lang = &#34;en&#34;
    el