◆ Transition() [1/2]
net.sf.hfst.WeightedTransducer.Transition.Transition |
( |
int |
input, |
|
|
int |
output, |
|
|
long |
target, |
|
|
float |
w |
|
) |
| |
Create a weighted transition
- Parameters
-
input | input symbol |
output | output symbol |
target | target state index |
w | weight |
◆ Transition() [2/2]
net.sf.hfst.WeightedTransducer.Transition.Transition |
( |
| ) |
|
Create default transition.
◆ getInput()
int net.sf.hfst.WeightedTransducer.Transition.getInput |
( |
| ) |
|
Get input symbol
- Returns
- input symbol
◆ getOutput()
int net.sf.hfst.WeightedTransducer.Transition.getOutput |
( |
| ) |
|
Get output symbol.
- Returns
- output symbol
◆ getWeight()
float net.sf.hfst.WeightedTransducer.Transition.getWeight |
( |
| ) |
|
get weight.
- Returns
- weight
◆ isFinal()
Boolean net.sf.hfst.WeightedTransducer.Transition.isFinal |
( |
| ) |
|
Whether the state is final.
- Returns
- true if final, false otherweise.
◆ matches()
Boolean net.sf.hfst.WeightedTransducer.Transition.matches |
( |
int |
symbol | ) |
|
Whether transition matches the symbol.
- Parameters
-
- Returns
- true if transition is for symbol, false otherwise
◆ target()
long net.sf.hfst.WeightedTransducer.Transition.target |
( |
| ) |
|
Get target state.
- Returns
- target state index.
◆ inputSymbol
int net.sf.hfst.WeightedTransducer.Transition.inputSymbol |
|
protected |
◆ outputSymbol
int net.sf.hfst.WeightedTransducer.Transition.outputSymbol |
|
protected |
◆ targetIndex
long net.sf.hfst.WeightedTransducer.Transition.targetIndex |
|
protected |
◆ weight
float net.sf.hfst.WeightedTransducer.Transition.weight |
|
protected |
The documentation for this class was generated from the following file:
- /home/flammie/github/flammie/omorfi/src/java/net/sf/hfst/WeightedTransducer.java