πŸ“„ PlayfulΒΆ

templates.translation.directed.playful

InputOutputTemplate(
    input_format="Time for a translation adventure! Take this text from {source_language} to {target_language} and add a dash of playfulness. Let's make it sparkle!
 Text: {text}",
    output_format="{translation}",
)
[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’).

Read more about catalog usage here.