    ...     .setOutputCol(&quot;document&quot;)</span>
<span class="sd">    &gt;&gt;&gt; tokenizer = Tokenizer() \\</span>
<span class="sd">    ...     .setInputCols([&quot;document&quot;]) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;token&quot;)</span>
<span class="sd">    &gt;&gt;&gt; embeddings = Word2VecApproach() \\</span>
<span class="sd">    ...     .setInputCols([&quot;token&quot;]) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;embeddings&quot;)</span>
<span class="sd">  