|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WFSA<S extends State,Y extends Symbol,T extends Transition<S,Y>>
| Nested Class Summary | |
|---|---|
static interface |
WFSA.Factory
WFSA instantiation Factory. |
| Method Summary | |
|---|---|
void |
dumpTrainCounts()
Dumps the trained data to the model. |
Alphabet<Y> |
getAlphabet()
Returns the alphabet of the Model. |
double |
getFinProb(S state)
Returns the probability of being final |
S |
getIniState()
Returns the initial State |
java.lang.String |
getName()
Returns the name of the Model. |
T |
getRandomTrans(S state)
Returns a random transitions from a state |
T[] |
getTrans(S state)
Returns all possible transitions from a state. |
void |
incrementTrainCount(S state,
double count)
Increments the training counts associated to a final state. |
void |
incrementTrainCount(T t,
double count)
Increments the training counts associated to a Transition. |
void |
initTrainCounts(double initCount)
Initializes the training counts. |
java.lang.String |
toXML()
Returns a XML representation of the WFSA |
| Method Detail |
|---|
java.lang.String toXML()
java.lang.String getName()
Alphabet<Y> getAlphabet()
AlphabetS getIniState()
double getFinProb(S state)
T[] getTrans(S state)
state - The source State
array must be returned.
void initTrainCounts(double initCount)
throws java.lang.UnsupportedOperationException
initCount 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.
initCount - initial posterior probability count
java.lang.UnsupportedOperationException - if initCount!=0.0d and nonzero initialization is not supported
void incrementTrainCount(S state,
double count)
State.
state - the final Satecount - the training count.
void incrementTrainCount(T t,
double count)
Transition.
These counts are related to the probability of a Transition.
t - the Transitioncount - the training count.void dumpTrainCounts()
T getRandomTrans(S state)
state - The source State
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||