Skip to contents

Creates a new transformer with the passed type. See p.3 Transformer Maker in Transformers for Developers for details.

See .AIFEBaseTransformer class for details.

Usage

aife_transformer.make(type, init_trace = TRUE)

Arguments

type

string A type of the new transformer. Allowed types are bert, roberta, funnel, longformer, mpnet, modernbert. See AIFETrType list.

init_trace

bool option to show prints. If TRUE (by default) - messages will be shown, otherwise (FALSE) - hidden.

Value

If success - a new transformer, otherwise - an error (passed type is invalid).

See also

Other Transformer: AIFETrType