Cambridge SMT System
|
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::hasheqvecuint > | fst::NGramList |
typedef std::vector< NGram > | fst::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) |
|
inline |
Definition at line 93 of file fstutils.extractngrams.hpp.