Cambridge SMT System
|
Functor with recursive procedure that extracts into a vector all the possible ngrams of a lattice, up to a given order, and starting from a given state. More...
#include <fstutils.extractngrams.hpp>
Public Member Functions | |
void | operator() (std::vector< NGram > &ngrams, const VectorFst< Arc > &count, unsigned order, typename Arc::StateId s=0) |
Functor with recursive procedure that extracts into a vector all the possible ngrams of a lattice, up to a given order, and starting from a given state.
Definition at line 53 of file fstutils.extractngrams.hpp.
|
inline |
Definition at line 58 of file fstutils.extractngrams.hpp.