|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.util.InputNormalizer
public class InputNormalizer
InputNormalizer replaces Substituter as the
utility class for performing various stages of input
normalization . Substitutions of other types are now handled
independently by their respective processors.
| Constructor Summary | |
|---|---|
InputNormalizer()
|
|
| Method Summary | |
|---|---|
static String |
patternFit(String input)
Performs pattern-fitting normalization on an input. |
static String |
patternFitIgnoreCase(String input)
Performs a partial pattern-fitting normalization on an input -- partial because it does not convert letters to uppercase. |
static List<String> |
sentenceSplit(List<String> sentenceSplitters,
String input)
Splits an input into sentences, as defined by the sentenceSplitters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputNormalizer()
| Method Detail |
|---|
public static List<String> sentenceSplit(List<String> sentenceSplitters,
String input)
sentenceSplitters.
sentenceSplitters - the sentence splitters to useinput - the input to split
public static String patternFit(String input)
Performs pattern-fitting normalization on an input.
This is best used to produce a caseless representation of the effective match string when presenting match results to a user; however, if used when actually performing the match it will result in the case of wildcard-captured values being lost. Some amendment of the specification is probably in order.
input - the string to pattern-fit
public static String patternFitIgnoreCase(String input)
Performs a partial pattern-fitting normalization on an input -- partial because it does not convert letters to uppercase.
This is used when sending patterns to the Graphmaster so that wildcard contents can be captured and case retained. Some amendment of the specification is probably in order.
input - the string to pattern-fit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||