Repository navigation
HfstBasicTransition
eaxelson edited this page Aug 29, 2017
·
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 \a state with input symbol \a input, output symbol \a output and weight \a weight. @param state Number of the target state. @param input The input string. @param output The output string. @param weight The weight. @throws 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 \a weight. @param 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