HFST - Helsinki Finite-State Transducer Technology - Python API  version 3.10.0
 All Classes Namespaces Files Functions Variables Pages
List of all members
TransducersAreNotAutomataException Class Reference

Transducers are not automata. More...

Inheritance diagram for TransducersAreNotAutomataException:
HfstException

Additional Inherited Members

- Public Member Functions inherited from HfstException
def what
 A message describing the error in more detail. More...
 

Detailed Description

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.


The documentation for this class was generated from the following file: