Repository: spark
Updated Branches:
  refs/heads/branch-1.4 8dfdca46d -> 020dd30e5


[SPARK-] [MLLIB] minor fix on tokenizer doc

A trivial fix for the comments of RegexTokenizer.

Maybe this is too small, yet I just noticed it and think it can be quite 
misleading. I can create a jira if necessary.

Author: Yuhao Yang <[email protected]>

Closes #7791 from hhbyyh/docFix and squashes the following commits:

cdf2542 [Yuhao Yang] minor fix on tokenizer doc

(cherry picked from commit 9c0501c5d04d83ca25ce433138bf64df6a14dc58)
Signed-off-by: Xiangrui Meng <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/020dd30e
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/020dd30e
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/020dd30e

Branch: refs/heads/branch-1.4
Commit: 020dd30e5173d534d1a2cd5934a66f70bc764459
Parents: 8dfdca4
Author: Yuhao Yang <[email protected]>
Authored: Thu Jul 30 08:20:52 2015 -0700
Committer: Xiangrui Meng <[email protected]>
Committed: Thu Jul 30 08:21:09 2015 -0700

----------------------------------------------------------------------
 mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/020dd30e/mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala 
b/mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala
index 5f9f57a..4b1700d 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/feature/Tokenizer.scala
@@ -50,7 +50,7 @@ class Tokenizer(override val uid: String) extends 
UnaryTransformer[String, Seq[S
 /**
  * :: Experimental ::
  * A regex based tokenizer that extracts tokens either by using the provided 
regex pattern to split
- * the text (default) or repeatedly matching the regex (if `gaps` is true).
+ * the text (default) or repeatedly matching the regex (if `gaps` is false).
  * Optional parameters also allow filtering tokens using a minimal length.
  * It returns an array of strings that can be empty.
  */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to