n>
<span class="sd">    &gt;&gt;&gt; data = spark.createDataFrame([[&quot;I saw him yesterday and he told me that he will visit us next week&quot;]]) \\</span>
<span class="sd">    ...     .toDF(&quot;text&quot;)</span>
<span class="sd">    &gt;&gt;&gt; result = pipeline.fit(data).transform(data)</span>
<span class="sd">    &gt;&gt;&gt; result.selectExpr(&quot;explode(date) as dates&quot;).show(truncate=False)</span>
<span class="sd">    +-----------------------------------------------+</span>
<span class="