HFST - Helsinki Finite-State Transducer Technology - Python API
version 3.11.0
|
The state number argument is not valid. More...
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
def | what |
A message describing the error in more detail. More... | |
The state number argument is not valid.
An example :
tr = hfst.HfstBasicTransducer() tr.add_state(1) try: w = tr.get_final_weight(2) except hfst.exceptions.StateIndexOutOfBoundsException: print('State number 2 does not exist')