π one_sentenceΒΆ
Note
ID: templates.summarization.abstractive.one_sentence | Type: InputOutputTemplate
{
"input_format": "Summarize the following text into one sentence: {document}.",
"output_format": "{summary}",
"postprocessors": [
"processors.take_first_non_empty_line"
],
"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.take_first_non_empty_line
Read more about catalog usage here.