You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/03/20 07:38:41 UTC
[jira] [Commented] (SPARK-20028) Implement NGrams aggregate
function
[ https://issues.apache.org/jira/browse/SPARK-20028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15932254#comment-15932254 ]
Apache Spark commented on SPARK-20028:
--------------------------------------
User 'gczsjdy' has created a pull request for this issue:
https://github.com/apache/spark/pull/17359
> Implement NGrams aggregate function
> -----------------------------------
>
> Key: SPARK-20028
> URL: https://issues.apache.org/jira/browse/SPARK-20028
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 2.2.0
> Reporter: Chenzhao Guo
>
> N-grams are subsequences of length N drawn from a longer sequence. The purpose of the ngrams() is to find the k most frequent n-grams from one or more sequences.
> The aggregation function has the pattern of :
> ngrams(array<array<string>>(or array<string>), int N, int K, int accuracy), where
> the first parameter indicates the 'longer sequence' we collect n-grams from,
> N & K indicates the top k n-grams,
> Accuracy indicates the frequency counting accuracy.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org