Give me a description, to serve as a comment into a Python class, of what an "TransformerEncoder" block does.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence