Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/14830#discussion_r76512344
--- Diff: examples/src/main/python/ml/tokenizer_example.py ---
@@ -18,11 +18,11 @@
from __future__ import print_function
# $example on$
-from pyspark.ml.feature import Tokenizer, RegexTokenizer
-from pyspark.sql.functions import col, udf
-from pyspark.sql.types import IntegerType
+from pyspark.ml.feature import RegexTokenizer, Tokenizer
# $example off$
from pyspark.sql import SparkSession
+from pyspark.sql.functions import col, udf
--- End diff --
These probably should be be included in the example (they were before), so
add an # $example on$ / # $example off$ around them.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]