HFST - Helsinki Finite-State Transducer Technology - C++ API
version 3.9.1
|
State is not final (and cannot have a final weight). More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
HFSTDLL std::string | operator() (void) const |
Get the error message. More... | |
State is not final (and cannot have a final weight).
An example:
HfstBasicTransducer tr; tr.add_state(1); // An exception is thrown as state number 1 is not final float w = tr.get_final_weight(1);
You should use function is_final_state if you are not sure whether a state is final.
Thrown by hfst::implementations::HfstTransitionGraph::get_final_weight.