Home | History | Annotate | Download | only in grxmlcompile

Lines Matching refs:Arc

27 // on the arc type to support multiple and extensible arc types.
43 typedef A Arc;
100 PrintId(l, isyms_, "arc input label");
104 PrintId(l, osyms_, "arc output label");
112 Arc arc = aiter.Value();
115 PrintStateId(arc.nextstate);
117 PrintILabel(arc.ilabel);
120 PrintOLabel(arc.olabel);
122 if (arc.weight != Weight::One())
123 *ostrm_ << "\t" << arc.weight;
148 // Main function for fstprint templated on the arc type.
149 template <class Arc>
152 Fst<Arc> *fst = Fst<Arc>::Read(istrm, opts);
189 FstPrinter<Arc> fstprinter(*fst, isyms, osyms, ssyms, FLAGS_acceptor);
207 typedef A Arc;
239 Arc arc;
249 arc.nextstate = d = StrToStateId(col[1]);
250 arc.ilabel = StrToILabel(col[2]);
251 arc.olabel = arc.ilabel;
252 arc.weight = Weight::One();
253 fst_.AddArc(s, arc);
256 arc.nextstate = d = StrToStateId(col[1]);
257 arc.ilabel = StrToILabel(col[2]);
259 arc.olabel = arc.ilabel;
260 arc.weight = StrToWeight(col[3], false);
262 arc.olabel = StrToOLabel(col[3]);
263 arc.weight = Weight::One();
265 fst_.AddArc(s, arc);
268 arc.nextstate = d = StrToStateId(col[1]);
269 arc.ilabel = StrToILabel(col[2]);
270 arc.olabel = StrToOLabel(col[3]);
271 arc.weight = StrToWeight(col[4], false);
272 fst_.AddArc(s, arc);
331 return StrToId(s, isyms_, "arc ilabel");
335 return StrToId(s, osyms_, "arc olabel");
363 // Main function for fstcompile templated on the arc type. Last two
364 // arguments unneeded since fstcompile passes the arc type as a flag
365 // unlike the other mains, which infer the arc type from an input Fst.
366 template <class Arc>
396 FstReader<Arc> fstreader(*istrm, ifilename, isyms, osyms, ssyms,
400 const Fst<Arc> *fst = &fstreader.Fst();
402 fst = Convert<Arc>(*fst, FLAGS_fst_type);