- Notifications
You must be signed in to change notification settings - Fork1
HfstBasicTransition
eaxelson edited this pageFeb 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 statestate with input symbolinput, output symboloutput and weightweight.
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 toweight.
weightThe weight.
A string representation of the transition.
Return: "target_state input_symbol output_symbol, weight"