src.preprocessing.generate_roberta_embedding
Generate the embeddings for the data using a RoBERTa model.
Classes
-
class src.preprocessing.generate_roberta_embedding.GenerateRobertaEmbedding(pretrained_model_name_or_path)[source]
Generate the RoBERTa embeddings for the data.
- Parameters:
pretrained_model_name_or_path (str
) – The name or path of the pretrained model.
-
pretrained_model_name_or_path:
str
-
custom_transform(data, **transform_args)[source]
Generate the RoBERTa embeddings for the data.
- Parameters:
-
- Return type:
DataFrame
- Returns:
The transformed data.