ained` of the companion</span>
<span class="sd">    object:</span>

<span class="sd">    &gt;&gt;&gt; t5 = T5Transformer.pretrained() \\</span>
<span class="sd">    ...     .setTask(&quot;summarize:&quot;) \\</span>
<span class="sd">    ...     .setInputCols([&quot;document&quot;]) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;summaries&quot;)</span>


<span class="sd">    The default model is ``&quot;t5_small&quot;``, if no name is provided. For available</span>
<span class="sd">    pretrained