Walk me through the architecture of a transformer model and how self-attention mechanisms can be applied to clinical notes.