Model Pipeline - Self-attention mechanism
The self-attention mechanism helps a model look at all parts of a sentence to understand the importance of each word when making predictions. It compares each word to every other word to decide what to focus on.