Example

Example of a Prompt Template for Machine Translation

Prompt templates can be designed for various NLP tasks, including machine translation. To frame translation as a text generation problem, a template can be used to instruct the model. For example, to translate an English sentence into Chinese, the following template could be used, where {*sentence*} is a placeholder for the input text:

{*sentence*} Question: What is the Chinese translation of this English sentence? Answer:

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences