nvalid model name {name}. {&#39;Did you mean bilstm-transformer?&#39; if name == &#39;bilstm-bert&#39; else &#39;&#39;}&#34;
        )

    # check BERT
    if name in TRANSFORMER_MODELS and not transformer_model:
        raise ValueError(
            f&#34;transformer_model is required for {BILSTM_TRANSFORMER} models&#34;
        )
    if name in TRANSFORMER_MODELS and DISABLE_V2_BEHAVIOR:
        raise ValueError(
            &#34;BERT and other transformer models cannot be used with DISABLE_v2_BEHAVIOR&#