FST  openfst-1.7.1
OpenFst Library
Public Types | Public Member Functions | Public Attributes | List of all members
fst::PruneOptions< Arc, ArcFilter > Struct Template Reference

#include <prune.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 PruneOptions (const Weight &weight_threshold=Weight::Zero(), StateId state_threshold=kNoStateId, ArcFilter filter=ArcFilter(), std::vector< Weight > *distance=nullptr, float delta=kDelta, bool threshold_initial=false)
 

Public Attributes

Weight weight_threshold
 
StateId state_threshold
 
ArcFilter filter
 
const std::vector< Weight > * distance
 
float delta
 
bool threshold_initial
 

Detailed Description

template<class Arc, class ArcFilter>
struct fst::PruneOptions< Arc, ArcFilter >

Definition at line 53 of file prune.h.

Member Typedef Documentation

template<class Arc, class ArcFilter>
using fst::PruneOptions< Arc, ArcFilter >::StateId = typename Arc::StateId

Definition at line 54 of file prune.h.

template<class Arc, class ArcFilter>
using fst::PruneOptions< Arc, ArcFilter >::Weight = typename Arc::Weight

Definition at line 55 of file prune.h.

Constructor & Destructor Documentation

template<class Arc, class ArcFilter>
fst::PruneOptions< Arc, ArcFilter >::PruneOptions ( const Weight weight_threshold = Weight::Zero(),
StateId  state_threshold = kNoStateId,
ArcFilter  filter = ArcFilter(),
std::vector< Weight > *  distance = nullptr,
float  delta = kDelta,
bool  threshold_initial = false 
)
inlineexplicit

Definition at line 57 of file prune.h.

Member Data Documentation

template<class Arc, class ArcFilter>
float fst::PruneOptions< Arc, ArcFilter >::delta

Definition at line 79 of file prune.h.

template<class Arc, class ArcFilter>
const std::vector<Weight>* fst::PruneOptions< Arc, ArcFilter >::distance

Definition at line 76 of file prune.h.

template<class Arc, class ArcFilter>
ArcFilter fst::PruneOptions< Arc, ArcFilter >::filter

Definition at line 74 of file prune.h.

template<class Arc, class ArcFilter>
StateId fst::PruneOptions< Arc, ArcFilter >::state_threshold

Definition at line 72 of file prune.h.

template<class Arc, class ArcFilter>
bool fst::PruneOptions< Arc, ArcFilter >::threshold_initial

Definition at line 84 of file prune.h.

template<class Arc, class ArcFilter>
Weight fst::PruneOptions< Arc, ArcFilter >::weight_threshold

Definition at line 70 of file prune.h.


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