Searched defs:Weight (Results 51 - 75 of 145) sorted by relevance

123456

/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Drandgen.h44 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 Dtest-properties.h75 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 Darcsort.h87 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 Dcomplement.h54 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 Drational.h53 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 Drelabel.h159 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 Dshortest-distance.h58 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 Dadd-on.h148 typedef typename Arc::Weight Weight; typedef in class:fst::AddOnImpl
187 Weight Final(StateId s) const { return fst_.Final(s); }
H A Darcsort.h43 typedef typename Arc::Weight Weight; typedef in class:fst::ArcSortMapper
54 Weight Final(StateId s) const { return fst_.Final(s); }
H A Dcomplement.h60 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 Dconnect.h39 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 Dprune.h37 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 Drational.h61 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 Dshortest-distance.h75 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 Dshortest-path.h43 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 Dstring.h40 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 Dcompile-strings.h46 typedef typename A::Weight Weight; typedef in class:fst::StringReader
/external/openfst/src/include/fst/extensions/pdt/
H A Dinfo.h44 typedef typename A::Weight Weight; typedef in class:fst::PdtInfo
H A Dreplace.h59 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 Dcompile-impl.h51 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 Ddraw-impl.h41 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 Dalgo_test.h67 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 Dfst_test.cc34 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 Dfst_test.h45 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 Dfst-io.h46 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...]

Completed in 299 milliseconds

123456