Skip to content

Commit 78638df

Browse files
author
Davies Liu
committed
Merge branch 'SPARK-4586' of github.com:mengxr/spark into ml
2 parents 1dca16a + fc59a02 commit 78638df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/pyspark/ml/feature.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
@inherit_doc
2626
class Tokenizer(JavaTransformer, HasInputCol, HasOutputCol):
2727
"""
28-
A tokenizer that converts the input string to lowercase and then splits it by white spaces.
28+
A tokenizer that converts the input string to lowercase and then
29+
splits it by white spaces.
2930
3031
>>> from pyspark.sql import Row
3132
>>> dataset = sqlCtx.inferSchema(sc.parallelize([Row(text="a b c")]))
@@ -44,7 +45,8 @@ class Tokenizer(JavaTransformer, HasInputCol, HasOutputCol):
4445
@inherit_doc
4546
class HashingTF(JavaTransformer, HasInputCol, HasOutputCol, HasNumFeatures):
4647
"""
47-
Maps a sequence of terms to their term frequencies using the hashing trick.
48+
Maps a sequence of terms to their term frequencies using the
49+
hashing trick.
4850
4951
>>> from pyspark.sql import Row
5052
>>> dataset = sqlCtx.inferSchema(sc.parallelize([Row(words=["a", "b", "c"])]))

0 commit comments

Comments
 (0)