FST
openfst-1.8.4
OpenFst Library
|
#include <replace.h>
Public Types | |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | LabelFstPair = typename PdtParser< Arc >::LabelFstPair |
using | LabelPair = typename PdtParser< Arc >::LabelPair |
using | LabelStatePair = typename PdtParser< Arc >::LabelStatePair |
using | StateWeightPair = typename PdtParser< Arc >::StateWeightPair |
using | ParenKey = typename PdtParser< Arc >::ParenKey |
using | ParenMap = typename PdtParser< Arc >::ParenMap |
![]() | |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | LabelFstPair = std::pair< Label, const Fst< Arc > * > |
using | LabelPair = std::pair< Label, Label > |
using | LabelStatePair = std::pair< Label, StateId > |
using | StateWeightPair = std::pair< StateId, Weight > |
using | ParenKey = std::pair< size_t, StateId > |
using | ParenMap = std::unordered_map< ParenKey, size_t, internal::ReplaceParenHash< StateId >> |
Public Member Functions | |
PdtLeftSRParser (const std::vector< LabelFstPair > &fst_array, const PdtReplaceOptions< Arc > &opts) | |
void | GetParser (MutableFst< Arc > *ofst, std::vector< LabelPair > *parens) override |
![]() | |
PdtParser (const std::vector< LabelFstPair > &fst_array, const PdtReplaceOptions< Arc > &opts) | |
virtual | ~PdtParser () |
Protected Member Functions | |
size_t | AssignParenIds (const Fst< Arc > &ofst, ParenMap *paren_map) const override |
size_t | SCC (Label label) const |
bool | SCCLeftLinear (size_t scc_id) const |
bool | SCCRightLinear (size_t scc_id) const |
const std::vector< size_t > & | SCCComps (size_t scc_id) const |
StateId | RepState (size_t scc_id) const |
![]() | |
const std::vector< LabelFstPair > & | FstArray () const |
Label | Root () const |
StateId | Label2Id (Label l) const |
LabelStatePair | GetLabelStatePair (StateId os) const |
StateId | GetState (const LabelStatePair &lsp) const |
void | CreateFst (MutableFst< Arc > *ofst, std::vector< StateId > *open_dest, std::vector< std::vector< StateWeightPair >> *close_src) |
void | AssignParenLabels (size_t total_nparens, std::vector< LabelPair > *parens) |
void | AddParensToFst (const std::vector< LabelPair > &parens, const ParenMap &paren_map, const std::vector< StateId > &open_dest, const std::vector< std::vector< StateWeightPair >> &close_src, const std::vector< bool > &close_non_term_weight, MutableFst< Arc > *ofst) |
void | AddParensToSymbolTables (const std::vector< LabelPair > &parens, MutableFst< Arc > *ofst) |
using fst::PdtLeftSRParser< Arc >::Label = typename Arc::Label |
using fst::PdtLeftSRParser< Arc >::LabelFstPair = typename PdtParser<Arc>::LabelFstPair |
using fst::PdtLeftSRParser< Arc >::LabelPair = typename PdtParser<Arc>::LabelPair |
using fst::PdtLeftSRParser< Arc >::LabelStatePair = typename PdtParser<Arc>::LabelStatePair |
using fst::PdtLeftSRParser< Arc >::ParenKey = typename PdtParser<Arc>::ParenKey |
using fst::PdtLeftSRParser< Arc >::ParenMap = typename PdtParser<Arc>::ParenMap |
using fst::PdtLeftSRParser< Arc >::StateId = typename Arc::StateId |
using fst::PdtLeftSRParser< Arc >::StateWeightPair = typename PdtParser<Arc>::StateWeightPair |
using fst::PdtLeftSRParser< Arc >::Weight = typename Arc::Weight |
|
inline |
|
overrideprotectedvirtual |
Implements fst::PdtParser< Arc >.
|
overridevirtual |
Implements fst::PdtParser< Arc >.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |