πŸ“„ Flan 1ΒΆ

templates.classification.multi_class.relation.truthfulness.flan_1

type: InputOutputTemplate
input_format: "Sentence 1: \"{text_a}\"\nSentence 2: \"{text_b}\"\nIs sentence 2 true, based on sentence 1?\n"
output_format: "ANS:\n{label}"
postprocessors: 
  - processors.get_string_after_colon
  - processors.take_first_non_empty_line
  - processors.lower_case_till_punc
[source]

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 reference 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, processors.get_string_after_colon, processors.lower_case_till_punc

Read more about catalog usage here.