Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

AI translation lets a computer change text from one language into another while keeping the meaning as close as possible. This matters because people use it to read websites, talk with classmates, travel, and share research across language barriers. Modern systems do not translate by looking up one word at a time.

They use machine learning to learn patterns from millions of example sentences.

Key Facts

  • AI translation predicts the most likely target sentence given a source sentence: best translation = argmax P(target | source).
  • Tokens are small pieces of text, such as words, word parts, or punctuation, that the model processes one at a time.
  • Embeddings turn tokens into lists of numbers so a computer can compare meanings and patterns.
  • Attention helps the model focus on the most relevant source tokens when producing each translated token.
  • Training uses example pairs, such as English sentence and Spanish sentence, to reduce prediction error.
  • Accuracy improves with more high quality data, but translation can still fail with slang, idioms, rare words, or missing context.

Vocabulary

Machine translation
Machine translation is the use of computer algorithms to convert text or speech from one language to another.
Token
A token is a small unit of text, such as a word, part of a word, number, or punctuation mark, that an AI model reads.
Embedding
An embedding is a list of numbers that represents a token in a way that helps the model compare meaning and usage.
Attention
Attention is a method that lets an AI model give more importance to certain words or tokens when making a prediction.
Training data
Training data is the set of examples used to teach a machine learning model how to make better predictions.

Common Mistakes to Avoid

  • Translating one word at a time. This is wrong because word order, grammar, and context often change the correct meaning.
  • Assuming the AI understands language like a human. This is wrong because the model predicts patterns from data rather than having real life experiences or intentions.
  • Ignoring context before judging a translation. This is wrong because the same word or sentence can mean different things depending on the topic, speaker, or situation.
  • Trusting every translation without checking it. This is wrong because AI can make errors with idioms, names, humor, cultural meaning, and specialized vocabulary.

Practice Questions

  1. 1 A sentence is split into 12 tokens. If the translation model processes 50 tokens per second, how long does it take to process the sentence?
  2. 2 A training set contains 800,000 sentence pairs. If 15 percent are removed because they are low quality, how many sentence pairs remain?
  3. 3 Explain why the phrase "break the ice" should not be translated word for word in many languages, and describe how an AI translation system might use context to choose a better translation.