Home | History | Annotate | Download | only in fst

Lines Matching refs:superfinal

21 // not change the number of arcs (except possibly superfinal arcs).
45 // A final weight is mapped to an arc to the superfinal state
47 // The superfinal state will be added only if it is needed.
50 // A final weight is mapped to an arc to the superfinal state
52 // Zero(). The superfinal state is always added (if the input is
72 // the number of arcs (expect possibly superfinal arcs).
96 // e.g. whether to add a superfinal state. They will use the Properties()
128 StateId superfinal = kNoStateId;
130 superfinal = fst->AddState();
131 fst->SetFinal(superfinal, Weight::One());
146 FSTERROR() << "ArcMap: non-zero arc labels for superfinal arc";
154 if (s != superfinal) {
157 // Add a superfinal state if not already done.
158 if (superfinal == kNoStateId) {
159 superfinal = fst->AddState();
160 fst->SetFinal(superfinal, Weight::One());
162 final_arc.nextstate = superfinal;
172 if (s != superfinal) {
177 final_arc.weight, superfinal));
233 StateId superfinal = kNoStateId;
235 superfinal = ofst->AddState();
236 ofst->SetFinal(superfinal, B::Weight::One());
252 FSTERROR() << "ArcMap: non-zero arc labels for superfinal arc";
261 // Add a superfinal state if not already done.
262 if (superfinal == kNoStateId) {
263 superfinal = ofst->AddState();
264 ofst->SetFinal(superfinal, B::Weight::One());
266 final_arc.nextstate = superfinal;
279 final_arc.weight, superfinal));
383 FSTERROR() << "ArcMapFst: non-zero arc labels for superfinal arc";
457 // Check for superfinal arcs.
652 bool superfinal_; // true if there is a superfinal state and not done