๐ yes_noยถ
Note
ID: templates.grammatical_error_detection.yes_no | Type: InputOutputTemplate
{
"input_format": "Text: {text}",
"instruction": "You are given a text. Does this text contain any grammatical errors or spelling mistakes? Answer only \"Yes\" or \"No\".\n",
"output_format": "{label}",
"postprocessors": [
"processors.take_first_word",
"processors.lower_case",
"processors.yes_no_to_int"
],
"target_prefix": "Answer: ",
"type": "input_output_template"
}
Explanation about InputOutputTemplateยถ
Generate field โsourceโ from fields designated as input, and fields โtargetโ and โreferencesโ from fields designated as output, of the processed instance.
Args specify the formatting strings with which to glue together the input and output designated fields of the processed instance into one string (โsourceโ and โtargetโ), and into a list of strings (โreferencesโ).
References: processors.take_first_word, processors.lower_case, processors.yes_no_to_int
Read more about catalog usage here.