Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/7244#discussion_r34003734
--- Diff: docs/ml-features.md ---
@@ -288,6 +288,82 @@ for words_label in wordsDataFrame.select("words",
"label").take(3):
</div>
+## $n$-gram
+
+An [n-gram](https://en.wikipedia.org/wiki/N-gram) is a sequence of $n$
tokens (typically words) for some integer $n$. The
[NGram](api/scala/index.html#org.apache.spark.ml.feature.NGram) class can be
used to transform input features into $n$-grams.
--- End diff --
I've started to put the link for the API docs under each language's
codetab. See StringIndexer's doc in this file for an 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]