 class="sd">    ...     .setMaxOutputLength(200) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;summaries&quot;)</span>
<span class="sd">    &gt;&gt;&gt; pipeline = Pipeline().setStages([documentAssembler, t5])</span>
<span class="sd">    &gt;&gt;&gt; data = spark.createDataFrame([[</span>
<span class="sd">    ...     &quot;Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a &quot; +</span>
<span class="sd">    ...     &quot;downstream task, has