edu.stanford.nlp.fsm
Class DFSATransition<T,S>
java.lang.Object
edu.stanford.nlp.fsm.DFSATransition<T,S>
- All Implemented Interfaces:
- Scored
public final class DFSATransition<T,S>
- 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.
- Author:
- Dan Klein
target
protected DFSAState<T,S> target
DFSATransition
public DFSATransition(Object transitionID,
DFSAState<T,S> source,
DFSAState<T,S> target,
T input,
Object output,
double score)
getSource
public DFSAState<T,S> getSource()
source
public DFSAState<T,S> source()
getTarget
public DFSAState<T,S> getTarget()
target
public DFSAState<T,S> target()
getID
public Object getID()
score
public double score()
- Specified by:
score
in interface Scored
- Returns:
- The score of this thing.
getInput
public T getInput()
input
public T input()
getOutput
public Object getOutput()
output
public Object output()
toString
public String toString()
- Overrides:
toString
in class Object
Stanford NLP Group