๐ defaultยถ
Note
ID: templates.classification.multi_class.relation.default | Type: InputOutputTemplate
{
"input_format": "{text_a_type}: {text_a}, {text_b_type}: {text_b}",
"instruction": "Given a {text_a_type} and {text_b_type} classify the {type_of_relation} of the {text_b_type} to one of {classes}.",
"output_format": "{label}",
"postprocessors": [
"processors.take_first_non_empty_line",
"processors.lower_case_till_punc"
],
"target_prefix": "The {type_of_relation} class is ",
"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.lower_case_till_punc, processors.take_first_non_empty_line
Read more about catalog usage here.