eddings&quot;) \\</span>
<span class="sd">    ...     .setOutputAsVector(True)</span>
<span class="sd">    &gt;&gt;&gt; pipeline = Pipeline().setStages([</span>
<span class="sd">    ...     documentAssembler,</span>
<span class="sd">    ...     embeddings,</span>
<span class="sd">    ...     embeddingsFinisher</span>
<span class="sd">    ... ])</span>
<span class="sd">    &gt;&gt;&gt; data = spark.createDataFrame([[&quot;Dynamical Scalar Degree of Freedom in Horava-Lifshitz Gravity&quot;]]).toDF(&quot;text&