jInfer

cz.cuni.mff.ksi.jinfer.basicigg.expansion
Class ExpansionHelper

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.basicigg.expansion.ExpansionHelper

public final class ExpansionHelper
extends Object

A few useful functions for complex regexp expansion. Library class.


Method Summary
static
<T> List<List<T>>
applyInterval(List<List<T>> input, RegexpInterval ri)
          Applies the regexp interval on the set of words.
static
<T> Regexp<T>
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

applyInterval

public static <T> List<List<T>> applyInterval(List<List<T>> input,
                                              RegexpInterval ri)
Applies the regexp interval on the set of words. For this function, word is a List of its letters (see type parameter). The actual list of generated words depends on the interval in following way:

Type Parameters:
T - Type of the letters of words in this function.
Parameters:
input - List of words (lists of letters) to be processed.
ri - Regexp interval to be applied on the words.
Returns:
List of resulting words.

getEmptyConcat

public static <T> Regexp<T> getEmptyConcat()
Returns an empty, immutable concatenation with interval "once".


jInfer

Generated on Fri Dec 9 00:01:25 CET 2011