You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chenzhao Guo (JIRA)" <ji...@apache.org> on 2017/03/20 07:08:42 UTC

[jira] [Updated] (SPARK-20028) Implement NGrams aggregate function

     [ https://issues.apache.org/jira/browse/SPARK-20028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chenzhao Guo updated SPARK-20028:
---------------------------------
    Description: 
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.


> 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