πŸ“„ titleΒΆ

Note

ID: templates.regression.single_text.title | Type: OutputQuantizingTemplate

{
    "input_format": "Text:\n{text}",
    "instruction": "Given a text, on a scale of {min_value} to {max_value}, what is the {attribute_name} of this text?",
    "output_format": "{attribute_value}",
    "postprocessors": [
        "processors.take_first_non_empty_line",
        "processors.cast_to_float_return_zero_if_failed"
    ],
    "quantum": 0.2,
    "target_prefix": "{attribute_name}:\n",
    "title_fields": [
        "attribute_name"
    ],
    "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.