|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.wfsa.models.TreeModel
public class TreeModel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.gtts.sautrela.wfsa.WFSA |
|---|
WFSA.Factory |
| Field Summary | |
|---|---|
static WFSA.Factory |
myFactory
|
| Method Summary | |
|---|---|
void |
dumpTrainCounts()
Dumps the trained data to the model. |
Alphabet<Symbol> |
getAlphabet()
Returns the alphabet of the Model. |
double |
getFinProb(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state)
Returns the probability of being final |
edu.gtts.sautrela.wfsa.models.TreeModel.State_ |
getIniState()
Returns the initial State |
java.lang.String |
getName()
Returns the name of the Model. |
edu.gtts.sautrela.wfsa.models.TreeModel.Transition_ |
getRandomTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state)
Returns a random transitions from a state |
edu.gtts.sautrela.wfsa.models.TreeModel.Transition_[] |
getTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ from)
Returns all possible transitions from a state. |
edu.gtts.sautrela.wfsa.models.TreeModel.Transition_[] |
getTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ from,
Symbol symbol)
Returns all possible transitions for the given source state and symbol. |
void |
incrementTrainCount(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state,
double count)
Increments the training counts associated to a final state. |
void |
incrementTrainCount(edu.gtts.sautrela.wfsa.models.TreeModel.Transition_ 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)
|
java.lang.String |
toXML()
Returns a XML representation of the WFSA |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final WFSA.Factory myFactory
| Method Detail |
|---|
public java.lang.String getName()
WFSA
getName in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>public Alphabet<Symbol> getAlphabet()
WFSA
getAlphabet in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>Alphabetpublic edu.gtts.sautrela.wfsa.models.TreeModel.State_ getIniState()
WFSA
getIniState in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>public double getFinProb(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state)
WFSA
getFinProb in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>
public edu.gtts.sautrela.wfsa.models.TreeModel.Transition_[] getTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ from)
throws java.lang.UnsupportedOperationException
WFSA
getTrans in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>from - The source State
array must be returned.
java.lang.UnsupportedOperationExceptionpublic edu.gtts.sautrela.wfsa.models.TreeModel.Transition_ getRandomTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state)
WFSA
getRandomTrans in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>state - The source State
public edu.gtts.sautrela.wfsa.models.TreeModel.Transition_[] getTrans(edu.gtts.sautrela.wfsa.models.TreeModel.State_ from,
Symbol symbol)
NdWFSA
getTrans in interface NdWFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>from - the source Statesymbol - the observed symbol
array must be returned.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.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>initCount - initial posterior probability count
public void incrementTrainCount(edu.gtts.sautrela.wfsa.models.TreeModel.State_ state,
double count)
WFSAState.
incrementTrainCount in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>state - the final Satecount - the training count.
public void incrementTrainCount(edu.gtts.sautrela.wfsa.models.TreeModel.Transition_ t,
double count)
WFSATransition.
These counts are related to the probability of a Transition.
incrementTrainCount in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>t - the Transitioncount - the training count.public void dumpTrainCounts()
WFSA
dumpTrainCounts in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>public java.lang.String toXML()
WFSA
toXML in interface WFSA<edu.gtts.sautrela.wfsa.models.TreeModel.State_,Symbol,edu.gtts.sautrela.wfsa.models.TreeModel.Transition_>public static void main(java.lang.String[] args)
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||