|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.wfsa.Util
public class Util
| Method Summary | ||
|---|---|---|
static void |
doGopalakrishnan(double[] logProb,
double[] count)
The Gopalakrishnan transformation p'= (p * C + count) / Normais implemented using the value C=Max{(1-count)/prob,0} for
each probability distribution. |
|
static
|
getProb(WFSA<S,Y,T> wfa,
java.util.List<Y> obs)
|
|
static
|
getProb(WFSA<S,Y,T> wfa,
java.util.List<Y> obs,
double beam)
|
|
static
|
getRandomTrans(T[] theArray)
|
|
static
|
getSymbolList(WFSA<?,Y1,?> A,
java.util.List<Y2> symbolList)
Returns the Symbol List of a given Symbol List
from another Alphabet |
|
static
|
getSymbolListFromNames(WFSA<?,Y,?> A,
java.util.List<java.lang.String> symbolNameList)
Returns the Symbol List of a given Symbol-name List |
|
static WFSA<State,Symbol,Transition<State,Symbol>> |
newWFSAInstance(org.xml.sax.InputSource is)
Instantiates a WFSA using a XML description found via an InputSource |
|
static WFSA<State,Symbol,Transition<State,Symbol>> |
newWFSAInstance(org.xml.sax.InputSource is,
Alphabet<Symbol> alphabet)
Instantiates a WFSA using a XML description found via an InputSource
and using an existing Alphabet. |
|
static
|
randomSymbolList(WFSA<S,Y,T> wfa)
Generates a random non-null list of Symbols for a WFSA. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <Y extends Symbol> java.util.List<Y> getSymbolListFromNames(WFSA<?,Y,?> A,
java.util.List<java.lang.String> symbolNameList)
List of a given Symbol-name List
A - the Model to be used
public static <Y1 extends Symbol,Y2 extends Symbol> java.util.List<Y1> getSymbolList(WFSA<?,Y1,?> A,
java.util.List<Y2> symbolList)
List of a given Symbol List
from another Alphabet
A - the Model to be usedpublic static <S extends State,Y extends Symbol,T extends Transition<S,Y>> java.util.List<Y> randomSymbolList(WFSA<S,Y,T> wfa)
WFSA.
wfa - theDWFSAA to be used
public static <S extends State,Y extends Symbol,T extends Transition<S,Y>> double getProb(WFSA<S,Y,T> wfa,
java.util.List<Y> obs)
public static <S extends State,Y extends Symbol,T extends Transition<S,Y>> double getProb(WFSA<S,Y,T> wfa,
java.util.List<Y> obs,
double beam)
public static WFSA<State,Symbol,Transition<State,Symbol>> newWFSAInstance(org.xml.sax.InputSource is)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
InputSource
is - the InputSource used to locate the XML description
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static WFSA<State,Symbol,Transition<State,Symbol>> newWFSAInstance(org.xml.sax.InputSource is,
Alphabet<Symbol> alphabet)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
InputSource
and using an existing Alphabet. The alphabet could grow.
is - the InputSource used to locate the XML descriptionalphabet - an existing Alphabet
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static void doGopalakrishnan(double[] logProb,
double[] count)
p'= (p * C + count) / NormaC=Max{(1-count)/prob,0} for
each probability distribution. This constant ensures that the minimun
probability (prior to normalization) will be 1.
public static <T extends Transition<?,?>> T getRandomTrans(T[] theArray)
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||