HFST - Helsinki Finite-State Transducer Technology API
version 3.7.1
|
State is not final (and cannot have a final weight). More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
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.