-
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
.
-
state
Number of the target state. -
input
The input string. -
output
The output string. -
weight
The 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
.
-
weight
The 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