edu.stanford.nlp.fsm
Class DFSATransition
java.lang.Object
|
+--edu.stanford.nlp.fsm.DFSATransition
- All Implemented Interfaces:
- Scored
- public final class DFSATransition
- extends Object
- implements Scored
(D)FSA Transition
Class for representing a transition in a weighted finite state
transducer. For now, just null out fields that may not apply.
This should really be FSATransition as there's nothing
deterministic-specific. If FSA is ever made, this should be
abstracted. The ID is a descriptor, not a unique ID.
target
protected DFSAState target
DFSATransition
public DFSATransition(Object transitionID,
DFSAState source,
DFSAState target,
Object input,
Object output,
double score)
getSource
public DFSAState getSource()
source
public DFSAState source()
getTarget
public DFSAState getTarget()
target
public DFSAState target()
getID
public Object getID()
score
public double score()
- Description copied from interface:
Scored
- Return the score of this thing
- Specified by:
score
in interface Scored
getInput
public Object getInput()
input
public Object input()
getOutput
public Object getOutput()
output
public Object output()
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group