|
HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.11.0
|
Transducers are not automata. More...
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
| def | what |
| A message describing the error in more detail. More... | |
Transducers are not automata.
Example:
tr1 = hfst.regex('foo:bar')
tr2 = hfst.regex('bar:baz')
try:
tr1.cross_product(tr2)
except hfst.exceptions.TransducersAreNotAutomataException:
print('Transducers must be automata in cross product.')This exception is thrown by hfst.HfstTransducer.cross_product when either input transducer does not have equivalent input and output symbols in all its transitions.
1.8.7