Package org.jpmml.evaluator
Class TextUtil
- java.lang.Object
-
- org.jpmml.evaluator.TextUtil
-
public class TextUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanmatches(org.dmg.pmml.TextIndex textIndex, TokenizedString leftTokens, TokenizedString rightTokens)static Stringnormalize(org.dmg.pmml.TextIndex textIndex, String string)static Stringnormalize(org.dmg.pmml.TextIndex textIndex, org.dmg.pmml.TextIndexNormalization textIndexNormalization, String string)static inttermFrequency(org.dmg.pmml.TextIndex textIndex, TokenizedString textTokens, TokenizedString termTokens)static Map<TokenizedString,Integer>termFrequencyTable(org.dmg.pmml.TextIndex textIndex, TokenizedString textTokens, Set<TokenizedString> termTokenSet, int maxLength)static TokenizedStringtokenize(org.dmg.pmml.TextIndex textIndex, String text)
-
-
-
Method Detail
-
normalize
public static String normalize(org.dmg.pmml.TextIndex textIndex, org.dmg.pmml.TextIndexNormalization textIndexNormalization, String string)
-
tokenize
public static TokenizedString tokenize(org.dmg.pmml.TextIndex textIndex, String text)
-
termFrequency
public static int termFrequency(org.dmg.pmml.TextIndex textIndex, TokenizedString textTokens, TokenizedString termTokens)
-
termFrequencyTable
public static Map<TokenizedString,Integer> termFrequencyTable(org.dmg.pmml.TextIndex textIndex, TokenizedString textTokens, Set<TokenizedString> termTokenSet, int maxLength)
-
matches
public static boolean matches(org.dmg.pmml.TextIndex textIndex, TokenizedString leftTokens, TokenizedString rightTokens)
-
-