HFST - Helsinki Finite-State Transducer Technology API
version 3.7.1
|
Transducer is cyclic. More...
#include <HfstExceptionDefs.h>
Additional Inherited Members | |
Public Member Functions inherited from HfstException | |
std::string | operator() (void) const |
Get the error message. More... | |
Transducer is cyclic.
thrown by hfst::HfstTransducer::extract_paths and hfst::HfstTransducer::extract_paths_fd. An example:
HfstTransducer transducer("a", "b", TROPICAL_OPENFST_TYPE); transducer.repeat_star(); try { HfstTwoLevelPaths results; transducer.extract_paths(results); fprintf(stderr, "The transducer has %i paths\n", results.size()); } catch (TransducerIsCyclicException e) { fprintf(stderr, "The transducer is cyclic " " and has an infinite number of paths.\n"); }