Lines Matching refs:Sampler
168 // sampler as it chooses. This generic version interprets this literally.
176 ArcSampler(const ArcSampler<A, S> &sampler, const Fst<A> *fst = 0)
177 : fst_(fst ? *fst : sampler.fst_),
178 arc_selector_(sampler.arc_selector_),
179 max_length_(sampler.max_length_) {
252 ArcSampler(const ArcSampler<A, S> &sampler, const Fst<A> *fst = 0)
253 : fst_(fst ? *fst : sampler.fst_),
254 arc_selector_(sampler.arc_selector_),
255 max_length_(sampler.max_length_) {
260 accumulator_ = new C(*sampler.accumulator_);
306 // is an arc sampler, typically class 'ArcSampler' above. Ownership of
307 // the sampler is taken by RandGenFst.
514 typedef S Sampler;
683 typedef ArcSampler<IArc, Selector> Sampler;
684 typedef RandGenFst<IArc, OArc, Sampler> RandFst;
688 Sampler* arc_sampler = new Sampler(ifst, opts.arc_selector, opts.max_length);
689 RandGenFstOptions<Sampler> fopts(CacheOptions(true, 0), arc_sampler,