Uses of Class
com.pervasive.datarush.analytics.text.NGram
Packages that use NGram
Package
Description
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 NGramMethods in com.pervasive.datarush.analytics.text that return types with arguments of type NGramModifier and TypeMethodDescriptionTextTokenUtil.generateNGramList(TextContainer text, int n) Lists the unique n-grams contained in the TextContainer.NGramMap.getMap()Get a copy of the map that backs this object.NGramMap.getNGramList()Get an ordered list of the n-grams contained in the map.NGramMap.iterator()Get an iterator over the entries in the map.Methods in com.pervasive.datarush.analytics.text with parameters of type NGramModifier and TypeMethodDescriptionintbooleanNGramMap.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 NGramModifier and TypeMethodDescriptionstatic 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