public class TextUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matches(org.dmg.pmml.TextIndex textIndex,
List<String> leftTokens,
List<String> rightTokens) |
static String |
normalize(org.dmg.pmml.TextIndex textIndex,
String string) |
static String |
normalize(org.dmg.pmml.TextIndex textIndex,
org.dmg.pmml.TextIndexNormalization textIndexNormalization,
String string) |
static int |
termFrequency(org.dmg.pmml.TextIndex textIndex,
List<String> textTokens,
List<String> termTokens) |
static Map<List<String>,Integer> |
termFrequencyTable(org.dmg.pmml.TextIndex textIndex,
List<String> textTokens,
Set<List<String>> termTokenSet,
int maxLength) |
static List<String> |
tokenize(org.dmg.pmml.TextIndex textIndex,
String text) |
public static String normalize(org.dmg.pmml.TextIndex textIndex, org.dmg.pmml.TextIndexNormalization textIndexNormalization, String string)
public static int termFrequency(org.dmg.pmml.TextIndex textIndex,
List<String> textTokens,
List<String> termTokens)
public static Map<List<String>,Integer> termFrequencyTable(org.dmg.pmml.TextIndex textIndex, List<String> textTokens, Set<List<String>> termTokenSet, int maxLength)
Copyright © 2021. All rights reserved.