Searched refs:WeightClass (Results 1 - 25 of 27) sorted by relevance

12

/external/openfst/src/include/fst/script/
H A Dtext-io.h17 // Modified: jpr@google.com (Jake Ratkiewicz) to work with generic WeightClass
42 vector<WeightClass>* potential);
45 const vector<WeightClass>& potential);
H A Dweight-class.h77 class WeightClass { class in namespace:fst::script
79 WeightClass() : element_type_(ZERO), impl_(0) { } function in class:fst::script::WeightClass
82 explicit WeightClass(const W& weight) function in class:fst::script::WeightClass
85 WeightClass(const string &weight_type, const string &weight_str);
87 WeightClass(const WeightClass &other) : function in class:fst::script::WeightClass
91 WeightClass &operator = (const WeightClass &other) {
113 bool operator == (const WeightClass &other) const {
119 static const WeightClass
138 explicit WeightClass(ElementType et) : element_type_(et), impl_(0) { } function in class:fst::script::WeightClass
[all...]
H A Dfstscript-decl.h30 class WeightClass;
H A 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,
H A Ddeterminize.h30 WeightClass weight_threshold;
35 WeightClass w =
36 fst::script::WeightClass::Zero(),
H A 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]);
197 const WeightClass &weight_threshold =
198 fst::script::WeightClass::Zero(),
203 void RmEpsilon(MutableFstClass *fst, vector<WeightClass> *distance,
H A 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]);
156 size_t, bool, bool, WeightClass,
173 vector<WeightClass> *distance,
181 WeightClass weight_threshold =
182 fst::script::WeightClass::Zero(),
H A Dreweight.h31 typedef args::Package<MutableFstClass *, const vector<WeightClass> &,
47 void Reweight(MutableFstClass *fst, const vector<WeightClass> &potential,
H A 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 ShortestDistanc
[all...]
H A Dmap.h52 const WeightClass &> MapInnerArgs;
110 const WeightClass &w = fst::script::WeightClass::Zero());
/external/openfst/src/script/
H A Dweight-class.cc29 WeightClass::WeightClass(const string &weight_type, function in class:fst::script::WeightClass
36 impl_ = stw(weight_str, "WeightClass", 0);
39 ostream& operator << (ostream &o, const WeightClass &c) {
H A Dtext-io.cc33 vector<WeightClass>* potential) {
58 WeightClass weight(weight_type, col[1]);
61 potential->push_back(WeightClass::Zero());
69 const vector<WeightClass>& potential) {
H A Dshortest-distance.cc25 void ShortestDistance(const FstClass &fst, vector<WeightClass> *distance,
34 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance,
43 WeightClass ShortestDistance(const FstClass &ifst) {
H A Dmap.cc25 float delta, const WeightClass &w) {
H A Dreweight.cc24 void Reweight(MutableFstClass *fst, const vector<WeightClass> &potential,
H A Drmepsilon.cc34 const WeightClass &weight_threshold,
41 void RmEpsilon(MutableFstClass *fst, vector<WeightClass> *distance,
H A Dshortest-path.cc25 vector<WeightClass> *distance,
35 WeightClass weight_threshold, int64 state_threshold) {
H A Dprune.cc43 const WeightClass& weight_threshold,
51 void Prune(MutableFstClass *fst, const WeightClass& weight_threshold,
/external/openfst/src/bin/
H A Dfstprune.cc34 using fst::script::WeightClass;
53 WeightClass weight_threshold = FLAGS_weight.empty() ?
54 WeightClass::Zero() :
55 WeightClass(fst->WeightType(), FLAGS_weight);
H A Dfstshortestpath.cc37 using fst::script::WeightClass;
57 WeightClass weight_threshold = FLAGS_weight.empty() ?
58 WeightClass::Zero() :
59 WeightClass(ifst->WeightType(), FLAGS_weight);
62 vector<WeightClass> distance;
H A Dfstmap.cc58 s::WeightClass w = !FLAGS_weight.empty() ?
59 s::WeightClass(ifst->WeightType(), FLAGS_weight) :
61 s::WeightClass::One() : s::WeightClass::Zero());
H A Dfstrmepsilon.cc38 using fst::script::WeightClass;
57 WeightClass weight_threshold = FLAGS_weight.empty() ?
58 WeightClass::Zero() :
59 WeightClass(ifst->WeightType(), FLAGS_weight);
H A Dfstdeterminize.cc37 using fst::script::WeightClass;
60 WeightClass::Zero() : WeightClass(ifst->WeightType(), FLAGS_weight),
H A Dfstreweight.cc51 vector<s::WeightClass> potential;
/external/openfst/src/extensions/pdt/
H A Dpdtexpand.cc60 s::WeightClass weight_threshold = FLAGS_weight.empty() ?
61 s::WeightClass::Zero() :
62 s::WeightClass(ifst->WeightType(), FLAGS_weight);

Completed in 108 milliseconds

12