Translation, in machine learning, models the probability of a target-language sentence given a source-language sentence, with the entire architectural history of the field amounting to different ways of representing that source sentence and generating the target sentence from it, from early statistical phrase-based methods through sequence-to-sequence neural networks to today's Transformer-based systems. Each architectural generation improved primarily by better capturing long-range dependencies and context across the full source sentence, rather than translating word-by-word or phrase-by-phrase with limited surrounding context the way earlier approaches were more constrained to do.