π TitleΒΆ
templates.regression.two_texts.title
OutputQuantizingTemplate
(
instruction="Given an Input Text, on a scale of {min_value} to {max_value}, what is the {attribute_name} to the Second Text?",
input_format="Input Text:
{text1}
Second Text:
{text2}",
target_prefix="{attribute_name}:
",
output_format="{attribute_value}",
quantum=0.2,
postprocessors=[
"processors.take_first_non_empty_line",
"processors.cast_to_float_return_zero_if_failed",
],
)
[source]References: processors.cast_to_float_return_zero_if_failed, processors.take_first_non_empty_line
Read more about catalog usage here.