gt;&gt; cleanUpPatterns = [&quot;&lt;[^&gt;]&gt;&quot;]</span>
<span class="sd">    &gt;&gt;&gt; documentNormalizer = DocumentNormalizer() \\</span>
<span class="sd">    ...     .setInputCols(&quot;document&quot;) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;normalizedDocument&quot;) \\</span>
<span class="sd">    ...     .setAction(&quot;clean&quot;) \\</span>
<span class="sd">    ...     .setPatterns(cleanUpPatterns) \\</span>
<span class="sd">    ...     .setReplacement(&quot; &quot;) \\</s