Home
last modified time | relevance | path

Searched refs:WeightClass (Results 1 – 25 of 35) sorted by relevance

12

/external/openfst/src/include/fst/script/
Dweight-class.h77 class WeightClass {
79 WeightClass() : element_type_(ZERO), impl_(0) { } in WeightClass() function
82 explicit WeightClass(const W& weight) in WeightClass() function
85 WeightClass(const string &weight_type, const string &weight_str);
87 WeightClass(const WeightClass &other) : in WeightClass() function
91 WeightClass &operator = (const WeightClass &other) {
113 bool operator == (const WeightClass &other) const {
119 static const WeightClass &Zero() { in Zero()
120 static WeightClass w(ZERO); in Zero()
125 static const WeightClass &One() { in One()
[all …]
Dprune.h33 WeightClass weight_threshold;
35 const vector<WeightClass> *distance;
38 explicit PruneOptions(const WeightClass& w, int64 s,
39 vector<WeightClass> *d = 0, float e = kDelta)
109 const WeightClass &, int64, float> PruneArgs3;
121 typedef args::Package<MutableFstClass *, const WeightClass&,
140 const WeightClass &weight_threshold,
145 void Prune(MutableFstClass *fst, const WeightClass& weight_threshold,
Drmepsilon.h46 WeightClass weight_threshold;
50 WeightClass w = fst::script::WeightClass::Zero(),
154 const WeightClass, int64,
166 typedef args::Package<MutableFstClass *, vector<WeightClass> *,
181 (*args->arg2)[i] = WeightClass(weights[i]); in RmEpsilon()
197 const WeightClass &weight_threshold =
198 fst::script::WeightClass::Zero(),
203 void RmEpsilon(MutableFstClass *fst, vector<WeightClass> *distance,
Dshortest-distance.h54 typedef args::Package<const FstClass &, vector<WeightClass> *,
158 (*args->arg2)[i] = WeightClass(weights[i]);
201 typedef args::Package<const FstClass&, vector<WeightClass>*,
212 vector<WeightClass> *retval = args->arg2;
216 (*retval)[i] = WeightClass(distance[i]);
221 typedef args::WithReturnValue<WeightClass,
228 args->retval = WeightClass(ShortestDistance(fst));
233 void ShortestDistance(const FstClass &fst, vector<WeightClass> *distance,
237 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance,
242 WeightClass ShortestDistance(const FstClass &ifst);
Dshortest-path.h38 const WeightClass weight_threshold;
44 WeightClass w = fst::script::WeightClass::Zero(),
52 vector<WeightClass> *, const ShortestPathOptions &>
150 (*args->arg3)[i] = WeightClass(weights[i]); in ShortestPath()
156 size_t, bool, bool, WeightClass,
173 vector<WeightClass> *distance,
181 WeightClass weight_threshold =
182 fst::script::WeightClass::Zero(),
Ddisambiguate.h30 WeightClass weight_threshold;
35 WeightClass w =
36 fst::script::WeightClass::Zero(),
Ddeterminize.h30 WeightClass weight_threshold;
35 WeightClass w =
36 fst::script::WeightClass::Zero(),
Dtext-io.h43 vector<WeightClass>* potential);
46 const vector<WeightClass>& potential);
Dreweight.h31 typedef args::Package<MutableFstClass *, const vector<WeightClass> &,
47 void Reweight(MutableFstClass *fst, const vector<WeightClass> &potential,
Dmap.h52 const WeightClass &> MapInnerArgs;
118 const WeightClass &w = fst::script::WeightClass::Zero());
Dfstscript-decl.h30 class WeightClass; variable
/external/openfst/src/bin/
Dfstshortestpath.cc37 using fst::script::WeightClass; in main()
57 WeightClass weight_threshold = FLAGS_weight.empty() ? in main()
58 WeightClass::Zero() : in main()
59 WeightClass(ifst->WeightType(), FLAGS_weight); in main()
62 vector<WeightClass> distance; in main()
Dfstprune.cc34 using fst::script::WeightClass; in main()
53 WeightClass weight_threshold = FLAGS_weight.empty() ? in main()
54 WeightClass::Zero() : in main()
55 WeightClass(fst->WeightType(), FLAGS_weight); in main()
Dfstrmepsilon.cc38 using fst::script::WeightClass; in main()
57 WeightClass weight_threshold = FLAGS_weight.empty() ? in main()
58 WeightClass::Zero() : in main()
59 WeightClass(ifst->WeightType(), FLAGS_weight); in main()
Dfstmap.cc58 s::WeightClass w = !FLAGS_weight.empty() ? in main()
59 s::WeightClass(ifst->WeightType(), FLAGS_weight) : in main()
61 s::WeightClass::One() : s::WeightClass::Zero()); in main()
Dfstdeterminize.cc37 using fst::script::WeightClass; in main()
60 WeightClass::Zero() : WeightClass(ifst->WeightType(), FLAGS_weight), in main()
/external/openfst/src/script/
Dtext-io.cc33 vector<WeightClass>* potential) { in ReadPotentials()
58 WeightClass weight(weight_type, col[1]); in ReadPotentials()
61 potential->push_back(WeightClass::Zero()); in ReadPotentials()
69 const vector<WeightClass>& potential) { in WritePotentials()
Dweight-class.cc29 WeightClass::WeightClass(const string &weight_type, in WeightClass() function in fst::script::WeightClass
39 ostream& operator << (ostream &o, const WeightClass &c) { in operator <<()
Dshortest-distance.cc25 void ShortestDistance(const FstClass &fst, vector<WeightClass> *distance, in ShortestDistance()
34 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance, in ShortestDistance()
43 WeightClass ShortestDistance(const FstClass &ifst) { in ShortestDistance()
Dshortest-path.cc25 vector<WeightClass> *distance, in ShortestPath()
35 WeightClass weight_threshold, int64 state_threshold) { in ShortestPath()
Drmepsilon.cc34 const WeightClass &weight_threshold, in RmEpsilon()
41 void RmEpsilon(MutableFstClass *fst, vector<WeightClass> *distance, in RmEpsilon()
Dprune.cc43 const WeightClass& weight_threshold, in Prune()
51 void Prune(MutableFstClass *fst, const WeightClass& weight_threshold, in Prune()
Dreweight.cc24 void Reweight(MutableFstClass *fst, const vector<WeightClass> &potential, in Reweight()
Dmap.cc25 float delta, const WeightClass &w) { in Map()
/external/openfst/src/extensions/pdt/
Dpdtexpand.cc60 s::WeightClass weight_threshold = FLAGS_weight.empty() ? in main()
61 s::WeightClass::Zero() : in main()
62 s::WeightClass(ifst->WeightType(), FLAGS_weight); in main()

12