Learn R Programming

aifeducation (version 1.0.2)

aife_transformer_maker: R6 object of the AIFETransformerMaker class

Description

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

Usage

aife_transformer_maker

Arguments

Format

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

See Also

Other Transformer: AIFETrType, AIFETransformerMaker

Examples

Run this code
# 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")

# Or use elements of the 'aifeducation::AIFETrType' list
my_longformer <- aife_transformer_maker$make(AIFETrType$longformer)

# 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(...)

Run the code above in your browser using DataLab