Cambridge SMT System
fst::GetNGrams< Arc > Class Template Reference

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)
 

Detailed Description

template<class Arc>
class fst::GetNGrams< Arc >

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.

Member Function Documentation

template<class Arc >
void fst::GetNGrams< Arc >::operator() ( std::vector< NGram > &  ngrams,
const VectorFst< Arc > &  count,
unsigned  order,
typename Arc::StateId  s = 0 
)
inline

Definition at line 58 of file fstutils.extractngrams.hpp.


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