-
Notifications
You must be signed in to change notification settings - 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
.
-
state
Number of the target state. -
input
The input string. -
output
The output string. -
weight
The 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
.
-
weight
The 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