-
Notifications
You must be signed in to change notification settings - Fork 1
HfstBasicTransition
eaxelson edited this page Feb 8, 2018
·
10 revisions
A transition class that consists of a target state, input and output symbols and a a tropical weight.
Create an HfstBasicTransition 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.HfstBasicTransition(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
- HfstBasicTransducer
- HfstBasicTransition
- HfstTransducer
- HfstInputStream
- HfstOutputStream
- MultiCharSymbolTrie
- HfstTokenizer
- LexcCompiler
- XreCompiler
- PmatchContainer
- ImplementationType