Skip to content

Commit d1c72af

Browse files
committed
Change text to fit on a line for doctest because I am lazy.
1 parent 4f85e37 commit d1c72af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sparklingml/feature/python_pipelines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ class NltkPosTransformer(Model, HasInputCol, HasOutputCol):
226226
Determine the positiveness of the sentence input.
227227
>>> from pyspark.sql import SparkSession
228228
>>> spark = SparkSession.builder.master("local[2]").getOrCreate()
229-
>>> df = spark.createDataFrame([("Boo is happy",), ("Boo is sad",)], ["vals"])
229+
>>> df = spark.createDataFrame([("Boo is happy",), ("sad Boo",)], ["vals"])
230230
>>> tr = NltkPosTransformer(inputCol="vals", outputCol="c")
231231
>>> tr.transform(df).show()
232232
+------------+-----+
233233
| vals| c|
234234
+------------+-----+
235235
|Boo is happy|0.6...|
236-
| Boo is sad| 0.0|
236+
| sad Boo| 0.0|
237237
+------------+-----+...
238238
"""
239239

0 commit comments

Comments
 (0)