aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorZheng RuiFeng <ruifengz@foxmail.com>2016-04-13 13:56:23 -0700
committerJoseph K. Bradley <joseph@databricks.com>2016-04-13 13:56:23 -0700
commitfcdd69260ec75c180f4d727ff2625ca9bf0bdad7 (patch)
tree4a45353bb6e72388c0c310231bd6ad2765768404 /docs
parenta91aaf5a8cca18811c0cccc20f4e77f36231b344 (diff)
downloadspark-fcdd69260ec75c180f4d727ff2625ca9bf0bdad7.tar.gz
spark-fcdd69260ec75c180f4d727ff2625ca9bf0bdad7.tar.bz2
spark-fcdd69260ec75c180f4d727ff2625ca9bf0bdad7.zip
[SPARK-14509][DOC] Add python CountVectorizerExample
## What changes were proposed in this pull request? Add python CountVectorizerExample ## How was this patch tested? manual tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes #11917 from zhengruifeng/cv_pe.
Diffstat (limited to 'docs')
-rw-r--r--docs/ml-features.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ml-features.md b/docs/ml-features.md
index 5cc27d3565..70812eb5e2 100644
--- a/docs/ml-features.md
+++ b/docs/ml-features.md
@@ -149,6 +149,15 @@ for more details on the API.
{% include_example java/org/apache/spark/examples/ml/JavaCountVectorizerExample.java %}
</div>
+
+<div data-lang="python" markdown="1">
+
+Refer to the [CountVectorizer Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.CountVectorizer)
+and the [CountVectorizerModel Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.CountVectorizerModel)
+for more details on the API.
+
+{% include_example python/ml/count_vectorizer_example.py %}
+</div>
</div>
# Feature Transformers