Home | History | Annotate | Download | only in fst

Lines Matching refs:StateId

57   typedef typename A::StateId StateId;
66 const Partition<typename A::StateId>& partition,
71 bool operator()(const StateId x, const StateId y) const {
107 const Partition<typename A::StateId>& partition_;
132 typedef typename A::StateId StateId;
133 typedef typename A::StateId ClassId;
146 const Partition<StateId>& partition() const {
155 ArcIterCompare(const Partition<StateId>& partition)
170 const Partition<StateId>& partition_;
185 typedef map<StateId, StateId, StateComparator<A> > EquivalenceMap;
190 StateId class_id = P_.AddClass();
195 StateId s = siter.Value();
235 for (PartitionIterator<StateId> siter(P_, C);
237 StateId s = siter.Value();
254 StateId from_state = aiter->Value().nextstate - 1;
259 StateId from_class = P_.class_id(from_state);
288 Partition<StateId> P_;
314 typedef typename A::StateId StateId;
315 typedef typename A::StateId ClassId;
323 const Partition<StateId>& partition() {
338 bool InitState(StateId s, StateId root) {
348 bool TreeArc(StateId s, const A& arc) {
353 bool BackArc(StateId s, const A& arc) {
358 bool ForwardOrCrossArc(StateId s, const A& arc) {
365 void FinishState(StateId s, StateId parent, const A* parent_arc) {
367 StateId h = height_[s] + 1;
379 const vector<StateId>& height() const { return height_; }
384 vector<StateId> height_;
400 const vector<StateId>& hstates = hvisitor.height();
407 typedef map<StateId, StateId, StateComparator<A> > EquivalenceMap;
416 PartitionIterator<StateId> siter(partition_, h);
419 const StateId s = siter.Value();
429 const StateId s = siter.Value();
430 const StateId old_class = partition_.class_id(s);
431 const StateId new_class = equiv_classes[s];
444 Partition<StateId> partition_;
455 const Partition<typename A::StateId>& partition, MutableFst<A>* fst) {
456 typedef typename A::StateId StateId;
458 vector<StateId> state_map(partition.num_classes());
460 PartitionIterator<StateId> siter(partition, i);
466 for (PartitionIterator<StateId> siter(partition, c);
468 StateId s = siter.Value();
488 typedef typename A::StateId StateId;
509 CyclicMinimizer<A, LifoQueue<StateId> > minimizer(*fst);