A transition class that consists of a target state, input and output symbols and a a tropical weight.
More...
A transition class that consists of a target state, input and output symbols and a a tropical weight.
- See also
- hfst.HfstBasicTransducer
def __init__ |
( |
|
self, |
|
|
|
state, |
|
|
|
input, |
|
|
|
output, |
|
|
|
weight |
|
) |
| |
Create an HfstBasicTransition leading to target state state with input symbol input, output symbol output and weight weight.
- Parameters
-
state | Number of the target state. |
input | The input string. |
output | The output string. |
weight | The weight. |
- Exceptions
-
EmptyStringException | transition = hfst.HfstBasicTransition(1, 'foo', 'bar', 0.5) |
def get_input_symbol |
( |
|
self | ) |
|
Get the input symbol of the transition.
def get_output_symbol |
( |
|
self | ) |
|
Get the output symbol of the transition.
def get_target_state |
( |
|
self | ) |
|
Get number of the target state of the transition.
Get the weight of the transition.
def set_weight |
( |
|
self, |
|
|
|
weight |
|
) |
| |
Set the weight of the transition to weight.
- Parameters
-
The documentation for this class was generated from the following file: