FST
openfst-1.8.4
OpenFst Library
|
#include <replace-util.h>
Public Types | |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | FstPair = std::pair< Label, const Fst< Arc > * > |
using | MutableFstPair = std::pair< Label, MutableFst< Arc > * > |
using | NonTerminalHash = std::unordered_map< Label, Label > |
Public Member Functions | |
ReplaceUtil (const std::vector< MutableFstPair > &fst_pairs, const ReplaceUtilOptions &opts) | |
ReplaceUtil (const std::vector< FstPair > &fst_pairs, const ReplaceUtilOptions &opts) | |
ReplaceUtil (const std::vector< std::unique_ptr< const Fst< Arc >>> &fst_array, const NonTerminalHash &nonterminal_hash, const ReplaceUtilOptions &opts) | |
~ReplaceUtil () | |
bool | CyclicDependencies () const |
StateId | SCC (Label label) const |
uint8_t | SCCProperties (StateId scc_id) |
bool | Connected () const |
void | Connect () |
void | ReplaceLabels (const std::vector< Label > &labels) |
void | ReplaceBySize (size_t nstates, size_t narcs, size_t nnonterms) |
void | ReplaceTrivial () |
void | ReplaceByInstances (size_t ninstances) |
void | ReplaceUnique () |
void | GetFstPairs (std::vector< FstPair > *fst_pairs) |
void | GetMutableFstPairs (std::vector< MutableFstPair > *mutable_fst_pairs) |
Definition at line 109 of file replace-util.h.
using fst::ReplaceUtil< Arc >::FstPair = std::pair<Label, const Fst<Arc> *> |
Definition at line 115 of file replace-util.h.
using fst::ReplaceUtil< Arc >::Label = typename Arc::Label |
Definition at line 111 of file replace-util.h.
using fst::ReplaceUtil< Arc >::MutableFstPair = std::pair<Label, MutableFst<Arc> *> |
Definition at line 116 of file replace-util.h.
using fst::ReplaceUtil< Arc >::NonTerminalHash = std::unordered_map<Label, Label> |
Definition at line 117 of file replace-util.h.
using fst::ReplaceUtil< Arc >::StateId = typename Arc::StateId |
Definition at line 112 of file replace-util.h.
using fst::ReplaceUtil< Arc >::Weight = typename Arc::Weight |
Definition at line 113 of file replace-util.h.
fst::ReplaceUtil< Arc >::ReplaceUtil | ( | const std::vector< MutableFstPair > & | fst_pairs, |
const ReplaceUtilOptions & | opts | ||
) |
Definition at line 268 of file replace-util.h.
fst::ReplaceUtil< Arc >::ReplaceUtil | ( | const std::vector< FstPair > & | fst_pairs, |
const ReplaceUtilOptions & | opts | ||
) |
Definition at line 294 of file replace-util.h.
fst::ReplaceUtil< Arc >::ReplaceUtil | ( | const std::vector< std::unique_ptr< const Fst< Arc >>> & | fst_array, |
const NonTerminalHash & | nonterminal_hash, | ||
const ReplaceUtilOptions & | opts | ||
) |
Definition at line 318 of file replace-util.h.
|
inline |
Definition at line 132 of file replace-util.h.
void fst::ReplaceUtil< Arc >::Connect | ( | ) |
Definition at line 441 of file replace-util.h.
|
inline |
Definition at line 166 of file replace-util.h.
|
inline |
Definition at line 138 of file replace-util.h.
void fst::ReplaceUtil< Arc >::GetFstPairs | ( | std::vector< FstPair > * | fst_pairs | ) |
Definition at line 570 of file replace-util.h.
void fst::ReplaceUtil< Arc >::GetMutableFstPairs | ( | std::vector< MutableFstPair > * | mutable_fst_pairs | ) |
Definition at line 582 of file replace-util.h.
void fst::ReplaceUtil< Arc >::ReplaceByInstances | ( | size_t | ninstances | ) |
Definition at line 551 of file replace-util.h.
void fst::ReplaceUtil< Arc >::ReplaceBySize | ( | size_t | nstates, |
size_t | narcs, | ||
size_t | nnonterms | ||
) |
Definition at line 530 of file replace-util.h.
void fst::ReplaceUtil< Arc >::ReplaceLabels | ( | const std::vector< Label > & | labels | ) |
Definition at line 480 of file replace-util.h.
|
inline |
Definition at line 190 of file replace-util.h.
|
inline |
Definition at line 198 of file replace-util.h.
|
inline |
Definition at line 145 of file replace-util.h.
|
inline |
Definition at line 159 of file replace-util.h.