πŸ“„ Instruct Question SelectsΒΆ

Note

ID: templates.classification.multi_class.instruct_question_selects | Type: InputOutputTemplate

{
    "__type__": "input_output_template",
    "input_format": "{text_type}:\n{text}\n{type_of_class}: ",
    "instruction": "What is the {type_of_class} expressed in the following {text_type}?\nSelect one out of the following options: {classes}.",
    "output_format": "{label}",
    "postprocessors": [
        "processors.take_first_non_empty_line",
        "processors.lower_case_till_punc"
    ]
}

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 reference fields of the processed instance into one string (β€˜source’ and β€˜target’), and into a list of strings (β€˜references’).

References: processors.take_first_non_empty_line, processors.lower_case_till_punc

Read more about catalog usage here.