|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.basicigg.expansion.ExpansionHelper
public final class ExpansionHelper
A few useful functions for complex regexp expansion. Library class.
Method Summary | ||
---|---|---|
static
|
applyInterval(List<List<T>> input,
RegexpInterval ri)
Applies the regexp interval on the set of words. |
|
static
|
getEmptyConcat()
Returns an empty, immutable concatenation with interval "once". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> List<List<T>> applyInterval(List<List<T>> input, RegexpInterval ri)
List
of its letters (see type parameter).
The actual list of generated words depends on the interval in following way:
?
): result is the original set of words + an empty word.+
): for each original word W
,
the result contains W
and WWW
(concatenation of 3 W
's).*
): result is an empty word + what would
Kleene cross generate.{m, n}
): for each original word W
,
the result contains a concatenation of m
W
's and a concatenation of n
W
's.
T
- Type of the letters of words in this function.input
- List of words (lists of letters) to be processed.ri
- Regexp interval to be applied on the words.
public static <T> Regexp<T> getEmptyConcat()
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |