Home | History | Annotate | Download | only in lib

Lines Matching refs:opts

118 	     const RandGenOptions<ArcSelector> &opts) {
121 if (opts.npath == 0 || opts.max_length == 0 || ifst.Start() == kNoStateId)
124 if (opts.source == kNoStateId) { // first call
129 RandGenOptions<ArcSelector> nopts(opts);
135 if (ifst.NumArcs(opts.source) == 0 &&
136 ifst.Final(opts.source) == Weight::Zero()) // Non-coaccessible
139 size_t n = opts.arc_selector(ifst, opts.source);
140 if (n == ifst.NumArcs(opts.source)) { // Take 'super-final' transition
141 ofst->SetFinal(opts.dest, Weight::One());
143 ArcIterator< Fst<Arc> > aiter(ifst, opts.source);
147 ofst->AddArc(opts.dest, oarc);
149 RandGenOptions<ArcSelector> nopts(opts);
163 RandGenOptions< UniformArcSelector<Arc> > opts(uniform_selector);
164 RandGen(ifst, ofst, opts);