TransformerEncoder is a block used to encode input data in a transformer network. It is composed of multiple layers of encoders, and is responsible for transforming the input data into a numerical representation that can be used by the downstream model. TransformerEncoder is used by transformer networks to encode input data into a numerical representation that captures the relationships between words, allowing the model to accurately capture the context of the text.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence