
<span class="gp">&gt;&gt;&gt; </span><span class="n">textDF</span> <span class="o">=</span> <span class="n">spark</span><span class="o">.</span><span class="n">read</span><span class="o">.</span><span class="n">text</span><span class="p">(</span>
<span class="gp">... </span>   <span class="s2">&quot;sherlockholmes.txt&quot;</span><span class="p">,</span>
<span class="gp">... </span>   <span class="n">wholetext</span><span class="o">=</span><span class="kc">True</span>
<span class="gp">... </span><span clas