ngram

Parameters

Parameter label

I/O type

Data type

Mandatory parameter?

Default value

inputVec

input

vector

yes

N/A

N

input

scalar

yes

N/A

outputVec

output

list

N/A

N/A

Functionality

Module computes a list of n-grams over inputVec with N defining the n-gram size. The n-grams are saved as a list in outputVec.

Here is a simple example:

inputVec = [1,2,3,4]
N = 2
...
outputVec = [[1,2],[2,3],[3,4]]