/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | queue.h | 27 #include "fst/lib/arcfilter.h" 28 #include "fst/lib/connect.h" 29 #include "fst/lib/heap.h" 30 #include "fst/lib/topsort.h" 32 namespace fst { namespace 291 TopOrderQueue(const Fst<Arc> &fst, ArcFilter filter) argument 296 DfsVisit(fst, &top_order_visitor, filter); 298 LOG(FATAL) << "TopOrderQueue: fst is not acyclic."; 505 AutoQueue(const Fst<Arc> &fst, const vector<typename Arc::Weight> *distance, argument 511 uint64 props = fst 646 SccQueueType(const Fst<A> &fst, const vector<StateId> &scc, vector<QueueType> *queue_type, ArcFilter filter, Less *less, bool *all_trivial, bool *unweighted) argument [all...] |
H A D | string-weight.h | 24 #include "fst/lib/product-weight.h" 25 #include "fst/lib/weight.h" 27 namespace fst { namespace 523 } // namespace fst;
|
H A D | synchronize.h | 28 #include "fst/lib/cache.h" 29 #include "fst/lib/test-properties.h" 31 namespace fst { namespace 72 SynchronizeFstImpl(const Fst<A> &fst, const SynchronizeFstOptions &opts) argument 73 : CacheImpl<A>(opts), fst_(fst.Copy()) { 75 uint64 props = fst.Properties(kFstProperties, false); 78 SetInputSymbols(fst.InputSymbols()); 79 SetOutputSymbols(fst.OutputSymbols()); 331 SynchronizeFst(const Fst<A> &fst) argument 332 : impl_(new SynchronizeFstImpl<A>(fst, SynchronizeFstOption 334 SynchronizeFst(const Fst<A> &fst, const SynchronizeFstOptions &opts) argument 337 SynchronizeFst(const SynchronizeFst<A> &fst) argument 401 StateIterator(const SynchronizeFst<A> &fst) argument 413 ArcIterator(const SynchronizeFst<A> &fst, StateId s) argument [all...] |
H A D | map.h | 23 #include "fst/lib/cache.h" 24 #include "fst/lib/mutable-fst.h" 26 namespace fst { namespace 81 void Map(MutableFst<A> *fst, C* mapper) { argument 85 if (fst->Start() == kNoStateId) 88 uint64 props = fst->Properties(kFstProperties, false); 93 superfinal = fst->AddState(); 94 fst->SetFinal(superfinal, Weight::One()); 97 for (StateId s = 0; s < fst 149 Map(MutableFst<A> *fst, C mapper) argument 269 MapFstImpl(const Fst<A> &fst, const C &mapper, const MapFstOptions& opts) argument 279 MapFstImpl(const Fst<A> &fst, C *mapper, const MapFstOptions& opts) argument 464 MapFst(const Fst<A> &fst, const C &mapper, const MapFstOptions& opts) argument 468 MapFst(const Fst<A> &fst, C* mapper, const MapFstOptions& opts) argument 472 MapFst(const Fst<A> &fst, const C &mapper) argument 476 MapFst(const Fst<A> &fst, C* mapper) argument 480 MapFst(const MapFst<A, B, C> &fst) argument 545 StateIterator(const MapFst<A, B, C> &fst) argument 598 ArcIterator(const MapFst<A, B, C> &fst, StateId s) argument 766 GallicToNewSymbolsMapper(MutableFst<ToArc> *fst) argument [all...] |
H A D | replace.h | 25 #include "fst/lib/fst.h" 26 #include "fst/lib/cache.h" 27 #include "fst/lib/test-properties.h" 29 namespace fst { namespace 90 StateId fst_id; // current fst being walked 91 StateId fst_state; // current state in fst being walked, not to be 92 // confused with the state_id of the combined fst 96 // \param fst_tuples array of label/fst tuples, one for each non-terminal 142 void AddFst(Label label, const Fst<A>* fst) { argument 210 SetFst(Label label, const Fst<A>* fst) argument 223 const Fst<A>* fst = fst_array_[root_]; local 243 const Fst<A>* fst = fst_array_[tuple.fst_id]; local 297 const Fst<A>* fst = fst_array_[tuple.fst_id]; local 553 ReplaceFst(const ReplaceFst<A>& fst) argument 626 StateIterator(const ReplaceFst<A> &fst) argument 640 ArcIterator(const ReplaceFst<A> &fst, StateId s) argument [all...] |
H A D | rmepsilon.h | 26 #include "fst/lib/arcfilter.h" 27 #include "fst/lib/cache.h" 28 #include "fst/lib/connect.h" 29 #include "fst/lib/factor-weight.h" 30 #include "fst/lib/invert.h" 31 #include "fst/lib/map.h" 32 #include "fst/lib/queue.h" 33 #include "fst/lib/shortest-distance.h" 34 #include "fst/lib/topsort.h" 36 namespace fst { namespace 60 RmEpsilonState(const Fst<Arc> &fst, vector<Weight> *distance, const RmEpsilonOptions<Arc, Queue> &opts) argument 200 RmEpsilon(MutableFst<Arc> *fst, vector<typename Arc::Weight> *distance, const RmEpsilonOptions<Arc, Queue> &opts) argument 286 RmEpsilon(MutableFst<Arc> *fst, bool connect = true) argument 329 RmEpsilonFstImpl(const Fst<A>& fst, const RmEpsilonFstOptions &opts) argument 435 RmEpsilonFst(const Fst<A> &fst) argument 438 RmEpsilonFst(const Fst<A> &fst, const RmEpsilonFstOptions &opts) argument 441 RmEpsilonFst(const RmEpsilonFst<A> &fst) argument 506 StateIterator(const RmEpsilonFst<A> &fst) argument 518 ArcIterator(const RmEpsilonFst<A> &fst, StateId s) argument [all...] |
H A D | vector-fst.h | 1 // vector-fst.h 26 #include "fst/lib/mutable-fst.h" 27 #include "fst/lib/test-properties.h" 29 namespace fst { namespace 196 explicit VectorFstImpl(const Fst<A> &fst); 322 VectorFstImpl<A>::VectorFstImpl(const Fst<A> &fst) { argument 324 SetProperties(fst.Properties(kCopyProperties, false) | kStaticProperties); 325 this->SetInputSymbols(fst.InputSymbols()); 326 this->SetOutputSymbols(fst 467 VectorFst(const VectorFst<A> &fst) argument 470 VectorFst(const Fst<A> &fst) argument 474 operator =(const VectorFst<A> &fst) argument 483 operator =(const Fst<A> &fst) argument 673 StateIterator(const VectorFst<A> &fst) argument 699 ArcIterator(const VectorFst<A> &fst, StateId s) argument 729 MutableArcIterator(VectorFst<A> *fst, StateId s) argument [all...] |
/external/openfst/src/include/fst/ |
H A D | compose-filter.h | 25 #include <fst/fst.h> 26 #include <fst/fst-decl.h> // For optional argument declarations 27 #include <fst/matcher.h> 30 namespace fst { namespace 539 } // namespace fst
|
H A D | edit-fst.h | 18 // existing fst. 26 #include <fst/cache.h> 32 namespace fst { namespace 36 // level: if a user has an underlying fst on which he or she wants to perform a 41 // added, and one may add transitions from existing nodes of the wrapped fst to 45 // undefined if invoked on an fst that has already been accessed. This class 61 // WrappedFstT the type of fst wrapped by the EditFst instance that 63 // MutableFstT the type of mutable fst to use internally for edited states; 64 // crucially, MutableFstT::Copy(false) *must* yield an fst that is 120 // accessor methods for the fst holdin 701 EditFst(const Fst<A> &fst) argument 704 EditFst(const WrappedFstT &fst) argument 708 EditFst(const EditFst<A, WrappedFstT, MutableFstT> &fst, bool safe = false) argument 719 operator =(const EditFst<A, WrappedFstT, MutableFstT> &fst) argument 724 operator =(const Fst<A> &fst) argument [all...] |
H A D | encode.h | 19 // Class to encode and decoder an fst. 32 #include <fst/arc-map.h> 33 #include <fst/rmfinalepsilon.h> 36 namespace fst { namespace 466 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) { argument 467 mapper->SetInputSymbols(fst->InputSymbols()); 468 mapper->SetOutputSymbols(fst->OutputSymbols()); 469 ArcMap(fst, mapper); 473 void Decode(MutableFst<A>* fst, const EncodeMapper<A>& mapper) { argument 474 ArcMap(fst, EncodeMappe 495 EncodeFst(const Fst<A> &fst, EncodeMapper<A>* encoder) argument 501 EncodeFst(const Fst<A> &fst, const EncodeMapper<A>& encoder) argument 505 EncodeFst(const EncodeFst<A> &fst, bool copy = false) argument 533 DecodeFst(const Fst<A> &fst, const EncodeMapper<A>& encoder) argument 542 DecodeFst(const DecodeFst<A> &fst, bool safe = false) argument 557 StateIterator(const EncodeFst<A> &fst) argument 567 ArcIterator(const EncodeFst<A> &fst, typename A::StateId s) argument 577 StateIterator(const DecodeFst<A> &fst) argument 587 ArcIterator(const DecodeFst<A> &fst, typename A::StateId s) argument [all...] |
H A D | label-reachable.h | 32 #include <fst/accumulator.h> 33 #include <fst/arcsort.h> 34 #include <fst/interval-set.h> 35 #include <fst/state-reachable.h> 36 #include <fst/vector-fst.h> 39 namespace fst { namespace 152 LabelReachable(const Fst<A> &fst, bool reach_input, S *s = 0, argument 154 : fst_(new VectorFst<Arc>(fst)), 211 void Relabel(MutableFst<Arc> *fst, boo argument 291 ReachInit(const F &fst, bool copy = false) argument [all...] |
H A D | lookahead-filter.h | 28 #include <fst/fst.h> 29 #include <fst/lookahead-matcher.h> 32 namespace fst { namespace 696 } // namespace fst
|
H A D | lookahead-matcher.h | 25 #include <fst/add-on.h> 26 #include <fst/const-fst.h> 27 #include <fst/fst.h> 28 #include <fst/label-reachable.h> 29 #include <fst/matcher.h> 35 namespace fst { namespace 50 // LookAheadMatcher(const F &fst, MatchType match_type); 72 // bool LookAheadFst(const Fst<Arc>& fst, StateI 148 LookAheadFst(const Fst<Arc> &fst, StateId s) argument 193 TrivialLookAheadMatcher(const FST &fst, MatchType match_type) argument 219 LookAheadFst(const Fst<Arc> &fst, StateId s) argument 222 InitLookAheadFst(const Fst<Arc>& fst, bool copy = false) argument 236 LookAheadFst_(const Fst<Arc> &fst, StateId s) argument 265 ArcLookAheadMatcher(const FST &fst, MatchType match_type, MatcherData *data = 0) argument 312 InitLookAheadFst(const Fst<Arc>& fst, bool copy = false) argument 327 LookAheadFst_(const Fst<Arc> &fst, StateId s) argument 338 LookAheadFst(const Fst<Arc> &fst, StateId s) argument 438 LabelLookAheadMatcher(const FST &fst, MatchType match_type, MatcherData *data = 0, S *s = 0) argument 544 InitLookAheadFst(const Fst<Arc>& fst, bool copy = false) argument 551 InitLookAheadFst(const L& fst, bool copy = false) argument 568 LookAheadFst_(const Fst<Arc> &fst, StateId s) argument 583 LookAheadFst(const L &fst, StateId s) argument 639 Relabel(MutableFst<A> *fst, const L &mfst, bool relabel_input) argument 667 Fst<A> &fst = (*impl)->GetFst(); local 717 LookAheadMatcher(const F &fst, MatchType match_type) argument 758 LookAheadFst(const Fst<Arc> &fst, StateId s) argument 785 InitLookAheadFst(const Fst<Arc>& fst, bool copy = false) argument [all...] |
H A D | matcher.h | 27 #include <fst/mutable-fst.h> // for all internal FST accessors 30 namespace fst { namespace 49 // Matcher(const F &fst, MatchType type); 148 SortedMatcher(const F &fst, MatchType match_type, argument 150 : fst_(fst.Copy()), 403 RhoMatcher(const FST &fst, argument 408 : matcher_(matcher ? matcher : new M(fst, match_type)), 424 rewrite_both_ = fst.Properties(kAcceptor, true); 577 SigmaMatcher(const FST &fst, argument 766 PhiMatcher(const FST &fst, MatchType match_type, Label phi_label = kNoLabel, bool phi_loop = true, MatcherRewriteMode rewrite_mode = MATCHER_REWRITE_AUTO, M *matcher = 0) argument 998 MultiEpsMatcher(const FST &fst, MatchType match_type, uint32 flags = (kMultiEpsLoop | kMultiEpsList), M *matcher = 0, bool own_matcher = true) argument 1166 Matcher(const F &fst, MatchType match_type) argument [all...] |
H A D | minimize.h | 33 #include <fst/arcsort.h> 34 #include <fst/connect.h> 35 #include <fst/dfs-visit.h> 36 #include <fst/encode.h> 37 #include <fst/factor-weight.h> 38 #include <fst/fst.h> 39 #include <fst/mutable-fst.h> 40 #include <fst/partitio 47 namespace fst { namespace 65 StateComparator(const Fst<A>& fst, const Partition<typename A::StateId>& partition, uint32 flags = kCompareAll) argument 137 CyclicMinimizer(const ExpandedFst<A>& fst) argument 182 PrePartition(const Fst<A>& fst) argument 214 Initialize(const Fst<A>& fst) argument 274 Compute(const Fst<A>& fst) argument 318 AcyclicMinimizer(const ExpandedFst<A>& fst) argument 335 InitVisit(const Fst<A>& fst) argument 392 Initialize(const Fst<A>& fst) argument 406 Refine(const Fst<A>& fst) argument 454 MergeStates( const Partition<typename A::StateId>& partition, MutableFst<A>* fst) argument 487 AcceptorMinimize(MutableFst<A>* fst) argument 531 Minimize(MutableFst<A>* fst, MutableFst<A>* sfst = 0, float delta = kDelta) argument [all...] |
H A D | queue.h | 30 #include <fst/arcfilter.h> 31 #include <fst/connect.h> 32 #include <fst/heap.h> 33 #include <fst/topsort.h> 36 namespace fst { namespace 321 TopOrderQueue(const Fst<Arc> &fst, ArcFilter filter) argument 326 DfsVisit(fst, &top_order_visitor, filter); 328 FSTERROR() << "TopOrderQueue: fst is not acyclic."; 543 AutoQueue(const Fst<Arc> &fst, const vector<typename Arc::Weight> *distance, argument 549 uint64 props = fst 688 SccQueueType(const Fst<A> &fst, const vector<StateId> &scc, vector<QueueType> *queue_type, ArcFilter filter, Less *less, bool *all_trivial, bool *unweighted) argument [all...] |
H A D | rmepsilon.h | 27 #include <fst/slist.h> 35 #include <fst/arcfilter.h> 36 #include <fst/cache.h> 37 #include <fst/connect.h> 38 #include <fst/factor-weight.h> 39 #include <fst/invert.h> 40 #include <fst/prune.h> 41 #include <fst/queue.h> 42 #include <fst/shortest-distance.h> 43 #include <fst/topsor 46 namespace fst { namespace 77 RmEpsilonState(const Fst<Arc> &fst, vector<Weight> *distance, const RmEpsilonOptions<Arc, Queue> &opts) argument 228 RmEpsilon(MutableFst<Arc> *fst, vector<typename Arc::Weight> *distance, const RmEpsilonOptions<Arc, Queue> &opts) argument 349 RmEpsilon(MutableFst<Arc> *fst, bool connect = true, typename Arc::Weight weight_threshold = Arc::Weight::Zero(), typename Arc::StateId state_threshold = kNoStateId, float delta = kDelta) argument 399 RmEpsilonFstImpl(const Fst<A>& fst, const RmEpsilonFstOptions &opts) argument 533 RmEpsilonFst(const Fst<A> &fst) argument 536 RmEpsilonFst(const Fst<A> &fst, const RmEpsilonFstOptions &opts) argument 540 RmEpsilonFst(const RmEpsilonFst<A> &fst, bool safe = false) argument 566 StateIterator(const RmEpsilonFst<A> &fst) argument 578 ArcIterator(const RmEpsilonFst<A> &fst, StateId s) argument [all...] |
H A D | symbol-table.h | 33 #include <fst/compat.h> 43 namespace fst { namespace 535 } // namespace fst
|
H A D | vector-fst.h | 1 // vector-fst.h 29 #include <fst/mutable-fst.h> 30 #include <fst/test-properties.h> 33 namespace fst { namespace 205 explicit VectorFstImpl(const Fst<A> &fst); 294 VectorFstImpl<A>::VectorFstImpl(const Fst<A> &fst) { argument 296 SetInputSymbols(fst.InputSymbols()); 297 SetOutputSymbols(fst.OutputSymbols()); 298 BaseImpl::SetStart(fst 425 VectorFst(const Fst<A> &fst) argument 428 VectorFst(const VectorFst<A> &fst) argument 435 operator =(const VectorFst<A> &fst) argument 440 operator =(const Fst<A> &fst) argument 512 StateIterator(const VectorFst<A> &fst) argument 534 WriteFst(const F &fst, ostream &strm, const FstWriteOptions &opts) argument 591 ArcIterator(const VectorFst<A> &fst, StateId s) argument 629 MutableArcIterator(VectorFst<A> *fst, StateId s) argument [all...] |
H A D | accumulator.h | 32 #include <fst/arcfilter.h> 33 #include <fst/arcsort.h> 34 #include <fst/dfs-visit.h> 35 #include <fst/expanded-fst.h> 36 #include <fst/replace.h> 38 namespace fst { namespace 52 void Init(const Fst<A>& fst, bool copy = false) {} argument 91 void Init(const Fst<A>& fst, bool copy = false) {} argument 159 // from log64 weights. The member function Init(fst) ha 245 Init(const F &fst, bool copy = false) argument 456 Init(const Fst<A> &fst, bool copy = false) argument [all...] |
H A D | arc-map.h | 33 #include <fst/cache.h> 34 #include <fst/mutable-fst.h> 37 namespace fst { namespace 112 void ArcMap(MutableFst<A> *fst, C* mapper) { argument 117 fst->SetInputSymbols(0); 120 fst->SetOutputSymbols(0); 122 if (fst->Start() == kNoStateId) 125 uint64 props = fst->Properties(kFstProperties, false); 130 superfinal = fst 191 ArcMap(MutableFst<A> *fst, C mapper) argument 332 ArcMapFstImpl(const Fst<A> &fst, const C &mapper, const ArcMapFstOptions& opts) argument 343 ArcMapFstImpl(const Fst<A> &fst, C *mapper, const ArcMapFstOptions& opts) argument 562 ArcMapFst(const Fst<A> &fst, const C &mapper, const ArcMapFstOptions& opts) argument 565 ArcMapFst(const Fst<A> &fst, C* mapper, const ArcMapFstOptions& opts) argument 568 ArcMapFst(const Fst<A> &fst, const C &mapper) argument 571 ArcMapFst(const Fst<A> &fst, C* mapper) argument 575 ArcMapFst(const ArcMapFst<A, B, C> &fst, bool safe = false) argument 603 StateIterator(const ArcMapFst<A, B, C> &fst) argument 665 ArcIterator(const ArcMapFst<A, B, C> &fst, StateId s) argument 872 GallicToNewSymbolsMapper(MutableFst<ToArc> *fst) argument [all...] |
H A D | cache.h | 29 #include <fst/vector-fst.h> 35 namespace fst { namespace 663 CacheStateIterator(const F &fst, Impl *impl) argument 664 : fst_(fst), impl_(impl), s_(0) { 859 } // namespace fst
|
/external/openfst/src/include/fst/extensions/pdt/ |
H A D | compose.h | 26 #include <fst/extensions/pdt/pdt.h> 27 #include <fst/compose.h> 29 namespace fst { namespace 50 ParenMatcher(const FST &fst, MatchType match_type, argument 52 : matcher_(fst, match_type), 534 } // namespace fst
|
H A D | paren.h | 34 #include <fst/extensions/pdt/pdt.h> 35 #include <fst/extensions/pdt/collection.h> 36 #include <fst/fst.h> 37 #include <fst/dfs-visit.h> 40 namespace fst { namespace 143 PdtParenReachable(const Fst<A> &fst, argument 145 : fst_(fst), 156 StateId start = fst.Start(); 502 } // namespace fst [all...] |
/external/svox/pico/lib/ |
H A D | picotrns.c | 19 * fst processing 295 static void GetNextAlternative (picokfst_FST fst, picotrns_AltDesc altDesc, argument 315 without fst state change */ 324 picokfst_kfstStartPairSearch(fst,inSeq[altDesc->inPos].sym,& inSymFound,& altDesc->searchState); 341 picokfst_kfstGetNextPair(fst,& altDesc->searchState,& pairFound,& (*outSym),& pairClass); 343 picokfst_kfstGetTrans(fst,altDesc->startFSTState,pairClass,& (*endFSTState)); 355 picokfst_kfstStartInEpsTransSearch(fst,altDesc->startFSTState,& inEpsTransFound,& altDesc->searchState); 363 picokfst_kfstGetNextInEpsTrans(fst,& altDesc->searchState,& inEpsTransFound,& (*outSym),& (*endFSTState)); 456 static void TransductionStep (picokfst_FST fst, struct picotrns_transductionState * transductionState, argument 500 GetNextAlternative(fst, 561 picotrns_transduce(picokfst_FST fst, picoos_bool firstSolOnly, picotrns_printSolutionFct printSolution, const picotrns_possym_t inSeq[], picoos_uint16 inSeqLen, picotrns_possym_t outSeq[], picoos_uint16 * outSeqLen, picoos_uint16 maxOutSeqLen, picotrns_AltDesc altDescBuf, picoos_uint16 maxAltDescLen, picoos_uint32 *nrSteps) argument 678 picotrns_stTransduce(picotrns_SimpleTransducer this, picokfst_FST fst) argument [all...] |