="sd">    ...     .setInputCols([&quot;document_question&quot;, &quot;document_context&quot;]) \\</span>
<span class="sd">    ...     .setOutputCol(&quot;answer&quot;) \\</span>
<span class="sd">    ...     .setCaseSensitive(False)</span>
<span class="sd">    &gt;&gt;&gt; pipeline = Pipeline().setStages([</span>
<span class="sd">    ...     documentAssembler,</span>
<span class="sd">    ...     spanClassifier</span>
<span class="sd">    ... ])</span>
<span class="sd">    &gt;&gt;&gt; data = spark.createData