Cambridge SMT System
fstutils.extractngrams.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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. More...
 

Namespaces

 fst
 

Typedefs

typedef unsigned fst::WordId
 
typedef std::basic_string< WordId > fst::NGram
 
typedef std::unordered_map< NGram, StdArc::Weight, ucam::util::hashfvecuint, ucam::util::hasheqvecuintfst::NGramList
 
typedef std::vector< NGramfst::NGramVector
 

Functions

template<class Arc >
void fst::filterTransducerByLength (VectorFst< Arc > &myfst, unsigned min, unsigned max)
 
template<class Arc >
void fst::extractNGrams (VectorFst< Arc > &myfst, std::vector< NGram > &ngrams, unsigned maxorder)
 
std::ostream & operator<< (std::ostream &o, const fst::NGram &n)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const fst::NGram n 
)
inline

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