public class NGramGenerator extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Generates an nGram based on a char input
Creates an ngram separated by the separator param value i.e.
input- the input tokens the output ngrams will be derived from
n- the number of tokens as the sliding window
separator- each string in each gram will be separated by this value if desired. Pass in empty string if no separator is desired
input- the array of chars to convert to nGram
n- The number of grams (chars) that each output gram will consist of
separator- each char in each gram will be separated by this value if desired. Pass in empty string if no separator is desired
Copyright © 2017 The Apache Software Foundation. All rights reserved.