Skip to contents

Object for creating the transformers with different types. See AIFETransformerMaker class for details.

Usage

aife_transformer_maker

Format

An object of class AIFETransformerMaker (inherits from R6) of length 3.

See also

Other Transformer: AIFETrType, AIFETransformerMaker

Examples

# Use 'make' method of the 'aifeducation::aife_transformer_maker' object
# Pass string with the type of transformers
# Allowed types are "bert", "deberta_v2", "funnel", etc. See aifeducation::AIFETrType list
my_bert <- aife_transformer_maker$make("bert")
#> [1] "BERT Model has been initialized."

# Or use elements of the 'aifeducation::AIFETrType' list
my_longformer <- aife_transformer_maker$make(AIFETrType$longformer)
#> [1] "Longformer Model has been initialized."

# Run 'create' or 'train' methods of the transformer in order to create a
# new transformer or train the newly created one, respectively
# my_bert$create(...)
# my_bert$train(...)

# my_longformer$create(...)
# my_longformer$train(...)