tml#sparknlp.annotator.seq2seq.t5_transformer.T5Transformer.setStopAtEos">[docs]</a>    <span class="k">def</span><span class="w"> </span><span class="nf">setStopAtEos</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">b</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Stop text generation when the end-of-sentence token is encountered.</span>

<span class="sd">        Parameters</span>
<span class="sd">        -