Github user yinxusen commented on a diff in the pull request:
https://github.com/apache/spark/pull/9735#discussion_r44925725
--- Diff: docs/ml-features.md ---
@@ -37,7 +37,7 @@ In the following code segment, we start with a set of
sentences. We split each
Refer to the [HashingTF Scala
docs](api/scala/index.html#org.apache.spark.ml.feature.HashingTF) and
the [IDF Scala docs](api/scala/index.html#org.apache.spark.ml.feature.IDF)
for more details on the API.
-{% include_example scala/org/apache/spark/examples/ml/TfIdfExample.scala %}
--- End diff --
There is no need to change `TfIdfExample` to `HashingTF`. You can treat
examples in the section [`Feature
Extractors`](http://spark.apache.org/docs/latest/ml-features.html#feature-extractors)
as examples, since `TF-IDF`, `Word2Vec`, and `CountVectorizer` have already
been written with `include_example`.
---
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]