π flanΒΆ
Note
ID: templates.regression.two_texts.similarity.flan | Type: OutputQuantizingTemplate
{
"input_format": "Sentence 1: {text1} Sentence 2: {text2}",
"instruction": "Evaluate the similarity between them and classify them into classes from 0-5 as follows:\n0 : The two sentences are completely dissimilar.\n1 : The two sentences are not equivalent, but are on the same topic.\n2 : The two sentences are not equivalent, but share some details.\n3 : The two sentences are roughly equivalent, but some important information differs/missing.\n4 : The two sentences are mostly equivalent, but some unimportant details differ.\n5 : The two sentences are completely equivalent, as they mean the same thing.",
"output_format": "{attribute_value}",
"postprocessors": [
"processors.take_first_non_empty_line",
"processors.cast_to_float_return_zero_if_failed"
],
"quantum": 1,
"type": "output_quantizing_template"
}
References: processors.take_first_non_empty_line, processors.cast_to_float_return_zero_if_failed
Read more about catalog usage here.