Example of LLM Output Generation for Grammaticality Judgment
After receiving a finalized input context, a language model generates the corresponding output by selecting the text with the highest likelihood. For instance, if the model is given the context as "John seems happy today. \n Question: Is this sentence grammatically correct? \n Answer:", it evaluates possible answers based on this input. It will output "Yes", mathematically denoted as = "Yes", if "Yes" is the text with the maximum probability of prediction given that specific context.
0
1
Tags
Foundations of Large Language Models
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
An automated grammar-checking tool uses a predefined template to structure its requests. The template is:
Please evaluate the grammaticality of the following sentence: {*text_input*}. A user submits the sentence 'The book are on the table.' for evaluation. Which option below shows the correctly constructed final request after the user's sentence is inserted into the template?A system uses the template
Analyze the following sentence for grammatical errors: "{*user_sentence*}". If a user provides the sentenceThe childrens plays in the park., the complete input sent for analysis would be: ____.Constructing a Final Prompt from a Template
Example of LLM Output Generation for Grammaticality Judgment