π DefaultΒΆ
templates.classification.multi_class.relation.default
InputOutputTemplate
(
input_format="{text_a_type}: {text_a}
{text_b_type}: {text_b}",
output_format="{label}",
target_prefix="The {type_of_relation} class is ",
instruction="Given a {text_a_type} and {text_b_type} classify the {type_of_relation} of the {text_b_type} to one of {classes}.",
postprocessors=[
"processors.take_first_non_empty_line",
"processors.lower_case_till_punc",
],
)
[source]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.