|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.wfsa.models.CHMM
public class CHMM
Continuous Hidden Markov Model
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.gtts.sautrela.wfsa.WFSA |
|---|
WFSA.Factory |
| Field Summary | |
|---|---|
static WFSA.Factory |
myFactory
|
| Method Summary | |
|---|---|
CHMM |
clone()
|
void |
dumpTrainCounts()
Dumps the trained data to the model. |
Alphabet<edu.gtts.sautrela.wfsa.models.CHMM.Symbol> |
getAlphabet()
Returns the alphabet of the Model. |
double |
getFinProb(edu.gtts.sautrela.wfsa.models.CHMM.State state)
Returns the probability of being final |
edu.gtts.sautrela.wfsa.models.CHMM.State |
getIniState()
Returns the initial State |
java.lang.String |
getName()
Returns the name of the Model. |
Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol> |
getRandomTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from)
Returns a random transitions from a state |
Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>[] |
getTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from)
Returns all possible transitions from a state. |
Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>[] |
getTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from,
edu.gtts.sautrela.wfsa.models.CHMM.Symbol symbol)
Returns all possible transitions for the given source state and symbol. |
void |
incrementTrainCount(edu.gtts.sautrela.wfsa.models.CHMM.State state,
double count)
Increments the training counts associated to a final state. |
void |
incrementTrainCount(Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol> t,
double count)
Increments the training counts associated to a Transition. |
void |
initTrainCounts(double initCount)
Initializes the training counts. |
static void |
main(java.lang.String[] args)
CHMM - resize/create a continuous Hidden Markov Model. |
void |
resize(int gNum,
int gDim)
Resize the Gaussians number and dimension. |
void |
setName(java.lang.String name)
Sets the name of the HMM. |
void |
setTrainMean(boolean flag)
Sets gaussians means training flag. |
void |
setTrainTrans(boolean flag)
Sets transitions training flag. |
void |
setTrainVar(boolean flag)
Sets gaussians variances training flag. |
void |
setTrainWeigth(boolean flag)
Sets gaussians weigths training flag. |
java.lang.String |
toString()
Returns a string representation of the object. |
java.lang.String |
toXML()
Returns a XML representation of the HMM |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final WFSA.Factory myFactory
| Method Detail |
|---|
public void setName(java.lang.String name)
name - the name of this HMMpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
WFSA
getName in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>public Alphabet<edu.gtts.sautrela.wfsa.models.CHMM.Symbol> getAlphabet()
WFSA
getAlphabet in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>Alphabetpublic double getFinProb(edu.gtts.sautrela.wfsa.models.CHMM.State state)
WFSA
getFinProb in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>public edu.gtts.sautrela.wfsa.models.CHMM.State getIniState()
WFSA
getIniState in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>
public Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>[] getTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from)
throws java.lang.UnsupportedOperationException
WFSA
getTrans in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>from - The source State
array must be returned.
java.lang.UnsupportedOperationExceptionpublic Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol> getRandomTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from)
WFSA
getRandomTrans in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>from - The source State
public Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>[] getTrans(edu.gtts.sautrela.wfsa.models.CHMM.State from,
edu.gtts.sautrela.wfsa.models.CHMM.Symbol symbol)
NdWFSA
getTrans in interface NdWFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>from - the source Statesymbol - the observed symbol
array must be returned.public void setTrainTrans(boolean flag)
flag - if set to true, HMM transitions are trained
if false, they are not.public void setTrainWeigth(boolean flag)
flag - if set to true, HMM gaussians weigths are
trained if false, they are not.public void setTrainMean(boolean flag)
flag - if set to true, HMM gaussians means are
trained if false, they are not.public void setTrainVar(boolean flag)
flag - if set to true, HMM gaussians variances are
trained if false, they are not.public void initTrainCounts(double initCount)
WFSAinitCount is used as initial posterior probability count
of the WFSA (MAP training). This count must be distributed
among all the internal parameters according to their prior probabilities.
initTrainCounts in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>initCount - initial posterior probability count
public void incrementTrainCount(edu.gtts.sautrela.wfsa.models.CHMM.State state,
double count)
WFSAState.
incrementTrainCount in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>state - the final Satecount - the training count.
public void incrementTrainCount(Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol> t,
double count)
WFSATransition.
These counts are related to the probability of a Transition.
incrementTrainCount in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>t - the Transitioncount - the training count.public void dumpTrainCounts()
WFSA
dumpTrainCounts in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>public java.lang.String toXML()
toXML in interface WFSA<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol,Transition<edu.gtts.sautrela.wfsa.models.CHMM.State,edu.gtts.sautrela.wfsa.models.CHMM.Symbol>>public CHMM clone()
clone in class java.lang.Object
public void resize(int gNum,
int gDim)
gNum - new number of gaussians per state, or 0 for no resizegDim - new dimension of gaussians, or 0 for no resize
public static void main(java.lang.String[] args)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
Syntax: CHMM [-mMtTvVwW] [-n name] [-N gNum] [-D gDim] URL
-m Turn off means training.
-M Turn on means training.
-t Turn off transitions training.
-T Turn on transitions training.
-v Turn off variances training.
-V Turn on variances training.
-w Turn off weigths training.
-W Turn on weigths training.
-n name New name for the CHMM
-N gNum Number of Gaussians
-D gDim Dimension of Gaussians
URL Locator of an existing CHMM
args - Command line arguments.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||