Example of a One-Shot Prompt for Grammar Correction
A one-shot prompt for grammar correction enhances a basic prompt by including a single, complete example of the task, known as a demonstration. This allows the language model to learn from the provided context. The structure typically involves defining the model's role and task, presenting one correct input-output pair, and then providing the new input for the model to process. For example:
DEMO Input: There is many reasons to celebrate. Output: There are many reasons to celebrate.
USER Input: She don’t like going to the park. Output:
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of a One-Shot Prompt for Grammar Correction
A developer is creating a prompt to instruct a language model to summarize a block of text into a single, concise sentence. Which of the following prompt structures best demonstrates the one-shot learning technique for this task?
Improving Prompt Reliability for Date Formatting
Analyzing a Flawed One-Shot Prompt for Information Extraction
Example of a One-Shot Prompt for Grammar Correction
A system is being developed to automatically correct grammatical errors in text. Which of the following input-output pairs provides the most suitable example to demonstrate this specific function?
Evaluating Examples for a Correction System
Match each input sentence containing a grammatical error with its corresponding corrected output. Note that some of the provided outputs are not direct grammatical corrections but other forms of text transformation.
Learn After
A user wants a language model to act as a grammar corrector. They provide the model with the text below. Analyze this text and identify the primary reason it may fail to guide the model effectively.
Your task is to correct grammatical errors.
Example Input: "He go to the store yesterday."
Correct this sentence: "She like to reads books."
A user wants to guide a language model to correct grammatical errors by providing a single, complete example of the task before giving it a new sentence. Arrange the following components into the most effective and logical sequence for this purpose.
Constructing a One-Shot Grammar Correction Prompt