|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.fst.Transducer.TransitionIterator
cc.mallet.fst.semi_supervised.pr.CachedDotTransitionIterator
public class CachedDotTransitionIterator
TransitionIterator that caches dot products.
| Field Summary | |
|---|---|
protected double[] |
weights
|
| Constructor Summary | |
|---|---|
protected |
CachedDotTransitionIterator(CRF.State source,
java.lang.Object fv,
java.lang.String output,
double[] dots)
|
|
CachedDotTransitionIterator(CRF.State source,
Sequence inputSeq,
int inputPosition,
java.lang.String output,
double[] dots)
|
| Method Summary | |
|---|---|
Transducer.State |
getDestinationState()
The state we are in after taking this transition. |
int |
getIndex()
An implementation-specific index for this transition object, can be used to index into arrays of per-transition parameters. |
java.lang.Object |
getInput()
The input symbol or object appearing on this transition. |
java.lang.Object |
getOutput()
The output symbol or object appearing on this transition. |
Transducer.State |
getSourceState()
The state we were in before taking this transition. |
double |
getWeight()
The weight (between infinity and -infinity) associated with taking this transition with this input/output. |
boolean |
hasNext()
|
Transducer.State |
nextState()
|
| Methods inherited from class cc.mallet.fst.Transducer.TransitionIterator |
|---|
describeTransition, getInputPositionIncrement, getOutputPositionIncrement, getTransducer, next, numberNext, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double[] weights
| Constructor Detail |
|---|
public CachedDotTransitionIterator(CRF.State source,
Sequence inputSeq,
int inputPosition,
java.lang.String output,
double[] dots)
protected CachedDotTransitionIterator(CRF.State source,
java.lang.Object fv,
java.lang.String output,
double[] dots)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<Transducer.State>hasNext in class Transducer.TransitionIteratorpublic Transducer.State nextState()
nextState in class Transducer.TransitionIteratorpublic final int getIndex()
Transducer.TransitionIterator
getIndex in class Transducer.TransitionIteratorpublic final java.lang.Object getInput()
Transducer.TransitionIterator
getInput in class Transducer.TransitionIteratorpublic final java.lang.Object getOutput()
Transducer.TransitionIterator
getOutput in class Transducer.TransitionIteratorpublic final double getWeight()
Transducer.TransitionIterator
getWeight in class Transducer.TransitionIteratorpublic final Transducer.State getSourceState()
Transducer.TransitionIterator
getSourceState in class Transducer.TransitionIteratorpublic final Transducer.State getDestinationState()
Transducer.TransitionIterator
getDestinationState in class Transducer.TransitionIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||