/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | randgen.h | 44 typedef typename A::Weight Weight; typedef in struct:fst::UniformArcSelector 51 if (fst.Final(s) != Weight::Zero()) 59 // the state). Weight::zero transitions are disregarded. 60 // Assumes Weight::Value() accesses the floating point 65 typedef typename A::Weight Weight; typedef in struct:fst::LogProbArcSelector 119 typedef typename Arc::Weight Weight; typedef 136 ifst.Final(opts.source) == Weight [all...] |
H A D | test-properties.h | 75 typedef typename Arc::Weight Weight; typedef 124 Arc prev_arc(kNoLabel, kNoLabel, Weight::One(), 0); 168 if (arc.weight != Weight::One() && arc.weight != Weight::Zero()) { 192 Weight final = fst.Final(s); 194 if (final != Weight::Zero()) { // final state 195 if (final != Weight::One()) {
|
H A D | arcsort.h | 87 typedef typename A::Weight Weight; typedef in class:fst::ArcSortFstImpl 116 Weight Final(StateId s) { 192 typedef typename A::Weight Weight; typedef in class:fst::ArcSortFst 209 virtual Weight Final(StateId s) const { return impl_->Final(s); }
|
H A D | complement.h | 54 typedef typename A::Weight Weight; typedef in class:fst::ComplementFstImpl 76 Weight Final(StateId s) const { 77 if (s == 0 || fst_->Final(s - 1) == Weight::Zero()) 78 return Weight::One(); 80 return Weight::Zero(); 115 typedef typename A::Weight Weight; typedef in class:fst::ComplementFst 134 virtual Weight Final(StateId s) const { return impl_->Final(s); } 219 typedef typename A::Weight Weigh typedef in class:fst::ArcIterator [all...] |
H A D | rational.h | 53 typedef typename A::Weight Weight; typedef in class:fst::RationalFstImpl 71 rfst_.SetFinal(1, Weight::One()); 75 rfst_.AddArc(0, A(0, -1, Weight::One(), 1)); 76 rfst_.AddArc(0, A(0, -2, Weight::One(), 1)); 94 rfst_.SetFinal(2, Weight::One()); 98 rfst_.AddArc(0, A(0, -1, Weight::One(), 1)); 99 rfst_.AddArc(1, A(0, -2, Weight::One(), 2)); 115 rfst_.SetFinal(0, Weight::One()); 116 rfst_.AddArc(0, A(0, -1, Weight 197 typedef typename A::Weight Weight; typedef in class:fst::RationalFst [all...] |
H A D | relabel.h | 159 typedef typename A::Weight Weight; typedef in class:fst::RelabelFstImpl 238 Weight Final(StateId s) { 324 typedef typename A::Weight Weight; typedef in class:fst::RelabelFst 359 virtual Weight Final(StateId s) const { return impl_->Final(s); }
|
H A D | shortest-distance.h | 58 typedef typename Arc::Weight Weight; typedef in class:fst::ShortestDistanceState 62 vector<Weight> *distance, 79 vector<Weight> *distance_; 85 vector<Weight> rdistance_; // Relaxation distance. 99 if (!(Weight::Properties() & kRightSemiring)) 100 LOG(FATAL) << "ShortestDistance: Weight needs to be right distributive: " 101 << Weight::Type(); 115 distance_->push_back(Weight::Zero()); 116 rdistance_.push_back(Weight 234 typedef typename Arc::Weight Weight; typedef [all...] |
/external/openfst/src/include/fst/ |
H A D | add-on.h | 148 typedef typename Arc::Weight Weight; typedef in class:fst::AddOnImpl 187 Weight Final(StateId s) const { return fst_.Final(s); }
|
H A D | arcsort.h | 43 typedef typename Arc::Weight Weight; typedef in class:fst::ArcSortMapper 54 Weight Final(StateId s) const { return fst_.Final(s); }
|
H A D | complement.h | 60 typedef typename A::Weight Weight; typedef in class:fst::ComplementFstImpl 93 Weight Final(StateId s) const { 94 if (s == 0 || fst_->Final(s - 1) == Weight::Zero()) 95 return Weight::One(); 97 return Weight::Zero(); 238 typedef typename A::Weight Weight; typedef in class:fst::ArcIterator 259 arc_.weight = Weight::One();
|
H A D | connect.h | 39 typedef typename Arc::Weight Weight; typedef in class:fst::CcVisitor 124 typedef typename A::Weight Weight; typedef in class:fst::SccVisitor 258 if (fst_->Final(s) != Weight::Zero())
|
H A D | prune.h | 37 typedef typename A::Weight Weight; typedef in class:fst::PruneOptions 41 Weight weight_threshold; 47 const vector<Weight> *distance; 52 explicit PruneOptions(const Weight& w, StateId s, ArcFilter f, 53 vector<Weight> *d = 0, float e = kDelta) 68 typedef W Weight; typedef in class:fst::PruneCompare 70 PruneCompare(const vector<Weight> &idistance, 71 const vector<Weight> &fdistance) 75 Weight w 102 typedef typename Arc::Weight Weight; typedef 220 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | rational.h | 61 typedef typename A::Weight Weight; typedef in class:fst::RationalFstImpl 98 Weight Final(StateId s) { return Replace()->Final(s); } 130 rfst_.SetFinal(1, Weight::One()); 134 rfst_.AddArc(0, A(0, -1, Weight::One(), 1)); 135 rfst_.AddArc(0, A(0, -2, Weight::One(), 1)); 153 rfst_.SetFinal(2, Weight::One()); 157 rfst_.AddArc(0, A(0, -1, Weight::One(), 1)); 158 rfst_.AddArc(1, A(0, -2, Weight::One(), 2)); 174 rfst_.SetFinal(0, Weight [all...] |
H A D | shortest-distance.h | 75 typedef typename Arc::Weight Weight; typedef in class:fst::ShortestDistanceState 79 vector<Weight> *distance, 97 vector<Weight> *distance_; 104 vector<Weight> rdistance_; // Relaxation distance. 123 if (!(Weight::Properties() & kRightSemiring)) { 124 FSTERROR() << "ShortestDistance: Weight needs to be right distributive: " 125 << Weight::Type(); 130 if (first_path_ && !(Weight::Properties() & kPath)) { 132 << "Weight doe 286 typedef typename Arc::Weight Weight; typedef 324 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | shortest-path.h | 43 typedef typename Arc::Weight Weight; typedef in struct:fst::ShortestPathOptions 53 Weight weight_threshold; // pruning weight threshold. 58 bool fp = false, Weight w = Weight::Zero(), 80 vector<typename Arc::Weight> *distance, 83 typedef typename Arc::Weight Weight; typedef 100 Weight f_distance = Weight 56 ShortestPathOptions(Queue *q, ArcFilter filt, size_t n = 1, bool u = false, bool hasdist = false, float d = kDelta, bool fp = false, Weight w = Weight::Zero(), StateId s = kNoStateId) argument 211 typedef W Weight; typedef in class:fst::ShortestPathCompare 417 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | string.h | 40 typedef typename A::Weight Weight; typedef in class:fst::StringCompiler 61 bool operator()(const string &s, F *fst, Weight w) const { 96 const Weight &weight = Weight::One()) const { 101 fst->AddArc(i, Arc(labels[i], labels[i], Weight::One(), i + 1)); 115 const Weight &weight = Weight::One()) const { 116 vector<pair<Label, Weight> > compacts; 119 compacts.push_back(make_pair(labels[i], Weight 164 typedef typename A::Weight Weight; typedef in class:fst::StringPrinter [all...] |
/external/openfst/src/include/fst/extensions/far/ |
H A D | compile-strings.h | 46 typedef typename A::Weight Weight; typedef in class:fst::StringReader
|
/external/openfst/src/include/fst/extensions/pdt/ |
H A D | info.h | 44 typedef typename A::Weight Weight; typedef in class:fst::PdtInfo
|
H A D | replace.h | 59 typedef typename Arc::Weight Weight; typedef 81 vector< vector<pair<StateId, Weight> > > fst_final(ifst_array.size()); 101 if (ifst->Final(is) != Weight::Zero()) { 183 pair<StateId, Weight> &p = fst_final[nfst_id][i];
|
/external/openfst/src/include/fst/script/ |
H A D | compile-impl.h | 51 typedef typename A::Weight Weight; typedef in class:fst::FstCompiler 90 fst_.SetFinal(s, Weight::One()); 99 arc.weight = Weight::One(); 110 arc.weight = Weight::One(); 187 Weight StrToWeight(const char *s, bool allow_zero) const { 188 Weight w; 191 if (!strm || (!allow_zero && w == Weight::Zero())) { 195 w = Weight::NoWeight();
|
H A D | draw-impl.h | 41 typedef typename A::Weight Weight; typedef in class:fst::FstDrawer 169 Weight final = fst_.Final(s); 170 if (final != Weight::Zero()) { 171 if (show_weight_one_ || (final != Weight::One())) { 200 if (show_weight_one_ || (arc.weight != Weight::One())) {
|
/external/openfst/src/test/ |
H A D | algo_test.h | 67 typedef typename Arc::Weight Weight; typedef in class:fst::WeightedTester 197 if (Weight::Properties() & kLeftSemiring) { 216 if (Weight::Properties() & kRightSemiring) { 234 if (Weight::Properties() & kLeftSemiring) { 246 if (Weight::Properties() & kRightSemiring) { 259 if (Weight::Properties() & kLeftSemiring) { 273 if (Weight::Properties() & kRightSemiring) { 286 if (Weight::Properties() & kLeftSemiring) { 296 if (Weight [all...] |
H A D | fst_test.cc | 34 typedef ProductWeight<TropicalWeight, LogWeight> Weight; typedef in struct:fst::CustomArc 37 CustomArc(Label i, Label o, Weight w, StateId s) : 48 Weight weight; // Transition weight 60 typedef typename A::Weight Weight; typedef in class:fst::CustomCompactor 61 typedef pair<Label, Weight> Element;
|
H A D | fst_test.h | 45 typedef typename Arc::Weight Weight; typedef in class:fst::FstTester 328 Weight NthWeight(int n) const { 329 Weight w = Weight::Zero(); 331 w = Plus(w, Weight::One());
|
/external/srec/tools/grxmlcompile/ |
H A D | fst-io.h | 46 typedef typename A::Weight Weight; typedef in class:fst::FstPrinter 122 if (arc.weight != Weight::One()) 127 Weight final = fst_.Final(s); 128 if (final != Weight::Zero() || !output) { 130 if (final != Weight::One()) { 210 typedef typename A::Weight Weight; typedef in class:fst::FstReader 243 fst_.SetFinal(s, Weight::One()); 252 arc.weight = Weight [all...] |