A developer is testing different ways to ask a language model to translate the English sentence 'The cat sat on the mat' into French. Consider the following three approaches:
Translate the following English text to French: The cat sat on the matEnglish: The cat sat on the mat Question: What is the French translation of this English sentence? Answer:- `def translate_to_french(english_text): """Translates the given English text to French.""" return model.translate(english_text)
input = "The cat sat on the mat" output = translate_to_french(input)`
Which option correctly identifies the format of each approach?
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of a Prompt Template for Machine Translation
Code-like Prompt Templates
A developer is testing different ways to ask a language model to translate the English sentence 'The cat sat on the mat' into French. Consider the following three approaches:
Translate the following English text to French: The cat sat on the matEnglish: The cat sat on the mat Question: What is the French translation of this English sentence? Answer:- `def translate_to_french(english_text): """Translates the given English text to French.""" return model.translate(english_text)
input = "The cat sat on the mat" output = translate_to_french(input)`
Which option correctly identifies the format of each approach?
Examples of Instruction-like Prompts for Language Models
Improving Idiomatic Machine Translation
Constructing Machine Translation Prompts