one_sentence
Note
ID: catalog.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’).