integer, numeric or character vector of all possible
unigrams.
seq_length
length of an origin sequence.
Value
vector of n-grams (where n is equal to the n of the input plus one).
Details
n-grams are built by pasting every possible unigram in the every possible free
position. The total length of n-gram (n plus total distance between elements of the n-gram)
is limited by the length of an origin sequence, because the n-gram cannot be longer than
an origin sequence.