#include <fst/closure.h>
Inherits fst::RationalFst< A >.

Public Types | |
| typedef A | Arc |
Public Member Functions | |
| ClosureFst (const Fst< A > &fst, ClosureType closure_type) | |
| ClosureFst (const Fst< A > &fst, const ClosureFstOptions &opts) | |
| ClosureFst (const ClosureFst< A > &fst, bool safe=false) | |
| See Fst<>::Copy() for doc. | |
| virtual ClosureFst< A > * | Copy (bool safe=false) const |
| Get a copy of this ClosureFst. See Fst<>::Copy() for further doc. | |
Computes the concatenative closure. This version is a delayed Fst. If FST transduces string x to y with weight a, then the closure transduces x to y with weight a, xx to yy with weight Times(a, a), xxx to yyy with weight Times(Times(a, a), a), etc. If closure_type == CLOSURE_STAR, then The empty string is transduced to itself with weight Weight::One() as well.
Complexity:
Definition at line 102 of file closure.h.
| typedef A fst::ClosureFst< A >::Arc |
Reimplemented from fst::RationalFst< A >.
| fst::ClosureFst< A >::ClosureFst | ( | const Fst< A > & | fst, | |
| ClosureType | closure_type | |||
| ) | [inline] |
| fst::ClosureFst< A >::ClosureFst | ( | const Fst< A > & | fst, | |
| const ClosureFstOptions & | opts | |||
| ) | [inline] |
| fst::ClosureFst< A >::ClosureFst | ( | const ClosureFst< A > & | fst, | |
| bool | safe = false | |||
| ) | [inline] |
See Fst<>::Copy() for doc.
| virtual ClosureFst<A>* fst::ClosureFst< A >::Copy | ( | bool | safe = false |
) | const [inline, virtual] |
Get a copy of this ClosureFst. See Fst<>::Copy() for further doc.
Implements fst::Fst< typename RationalFstImpl< A >::Arc >.
1.7.1