|
get_ngrams
Added in advas.0.0.2
Returns n-grams of a given term. The size means the number of characters the n-gram has.
In: |
term |
a given term, text or string |
|
size |
integer value |
Out: |
|
list of n-grams with size n |
Notes:
If the length of the given term is smaller than size, the given term is returned, instead. If size is smaller than 2, no n-grams can be figured out and term is returned, instead. A n-gram consists of at least two characters.
|
|