Uses of Class
com.pervasive.datarush.analytics.text.NGram
-
Packages that use NGram Package Description com.pervasive.datarush.analytics.text Provides various unstructured text processing operators. -
-
Uses of NGram in com.pervasive.datarush.analytics.text
Fields in com.pervasive.datarush.analytics.text with type parameters of type NGram Modifier and Type Field Description protected TreeMap<NGram,Integer>NGramMap. mapMethods in com.pervasive.datarush.analytics.text that return types with arguments of type NGram Modifier and Type Method Description static List<NGram>TextTokenUtil. generateNGramList(TextContainer text, int n)Lists the unique n-grams contained in the TextContainer.Map<NGram,Integer>NGramMap. getMap()Get a copy of the map that backs this object.List<NGram>NGramMap. getNGramList()Get an ordered list of the n-grams contained in the map.Iterator<Map.Entry<NGram,Integer>>NGramMap. iterator()Get an iterator over the entries in the map.Methods in com.pervasive.datarush.analytics.text with parameters of type NGram Modifier and Type Method Description intNGram. compareTo(NGram o)booleanNGramMap. decreaseFreq(NGram nGram)Removes an n-gram from the map or decrease the frequency if the absolute frequency is greater than one.intNGramMap. getFrequency(NGram ngram)Get the absolute frequency of an NGram in the map.doubleNGramMap. getProbability(NGram ngram)Get the relative frequency of an n-gram in the map.booleanNGramMap. increaseFreq(NGram nGram)Adds an n-gram to the map or increases the frequency if it is already present.intNGramMap. removeNGram(NGram nGram)Removes an n-gram from the map.Method parameters in com.pervasive.datarush.analytics.text with type arguments of type NGram Modifier and Type Method Description static NGramMapTextTokenUtil. calcNGramFreq(TextContainer text, int n, Set<NGram> nGramSet)Creates an n-gram frequency model containing the specified set of terms based on the contents of the TextContainer.Constructor parameters in com.pervasive.datarush.analytics.text with type arguments of type NGram Constructor Description NGramMap(int n, Map<NGram,Integer> map)Create an n-gram to frequency map.NGramMap(int n, Map<NGram,Integer> map, int textSize)Create an n-gram to frequency map.
-