FST  openfst-1.7.2
OpenFst Library
Classes | Namespaces | Functions
prune.h File Reference
#include <type_traits>
#include <utility>
#include <vector>
#include <fst/log.h>
#include <fst/arcfilter.h>
#include <fst/heap.h>
#include <fst/shortest-distance.h>
Include dependency graph for prune.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::internal::PruneCompare< StateId, Weight >
 
struct  fst::PruneOptions< Arc, ArcFilter >
 

Namespaces

 fst
 
 fst::internal
 

Functions

template<class Arc , class ArcFilter , typename std::enable_if<(Arc::Weight::Properties()&kPath)==kPath >::type * = nullptr>
void fst::Prune (MutableFst< Arc > *fst, const PruneOptions< Arc, ArcFilter > &opts=PruneOptions< Arc, ArcFilter >())
 
template<class Arc >
void fst::Prune (MutableFst< Arc > *fst, typename Arc::Weight weight_threshold, typename Arc::StateId state_threshold=kNoStateId, float delta=kDelta)
 
template<class Arc , class ArcFilter , typename std::enable_if< IsPath< typename Arc::Weight >::value >::type * = nullptr>
void fst::Prune (const Fst< Arc > &ifst, MutableFst< Arc > *ofst, const PruneOptions< Arc, ArcFilter > &opts=PruneOptions< Arc, ArcFilter >())
 
template<class Arc >
void fst::Prune (const Fst< Arc > &ifst, MutableFst< Arc > *ofst, typename Arc::Weight weight_threshold, typename Arc::StateId state_threshold=kNoStateId, float delta=kDelta)