Learn Before
Example

Example of In-Context Learning for Translation

In-context learning can be applied to translation tasks by prompting a Large Language Model with a few examples of translated phrases before presenting the target phrase. For example, a prompt instructing the model to translate Chinese to English might provide: 'Example 1: 你好 Translation: Hello' and 'Example 2: 谢谢你 Translation: Thank you', enabling the model to correctly translate the final target phrase '早上好' as 'Good Morning'.

0

1

Updated 2026-04-21

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related