-
Couldn't load subscription status.
- Fork 0
HfstTransition
eaxelson edited this page Oct 25, 2018
·
1 revision
A transition class that consists of a target state, input and output symbols and a a tropical weight.
Create an HfstTransition leading to target state state with input symbol input, output symbol output and weight weight.
-
stateNumber of the target state. -
inputThe input string. -
outputThe output string. -
weightThe weight. Throws: hfst.exceptions.EmptyStringException
transition = hfst.HfstTransition(1, 'foo', 'bar', 0.5)
Get the input symbol of the transition.
Get the output symbol of the transition.
Get number of the target state of the transition.
Get the weight of the transition.
Set the weight of the transition to weight.
-
weightThe weight.
A string representation of the transition.
Return: "target_state input_symbol output_symbol, weight"
Package hfst
- AttReader
- PrologReader
- HfstIterableTransducer
- HfstTransition
- HfstTransducer
- HfstInputStream
- HfstOutputStream
- MultiCharSymbolTrie
- HfstTokenizer
- LexcCompiler
- XreCompiler
- PmatchContainer
- ImplementationType