HFST - Helsinki Finite-State Transducer Technology API  version 3.7.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members
TransducerIsCyclicException Struct Reference

Transducer is cyclic. More...

#include <HfstExceptionDefs.h>

Inheritance diagram for TransducerIsCyclicException:
HfstException

Additional Inherited Members

- Public Member Functions inherited from HfstException
std::string operator() (void) const
 Get the error message. More...
 

Detailed Description

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");
}

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