a guest Feb 14th, 2015 219 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. typedef fst::StdVectorFst GRAPH;
  2. GRAPH _graph1,  _graph2;
  3. //...
  4. fst::StdOLabelLookAheadFst graph1Look(_graph1);
  5. std::auto_ptr<GRAPH> graph2TrueRelabel(_graph2.Copy(true));
  6. fst::LabelLookAheadRelabeler<GRAPH::Arc>::Relabel(graph2TrueRelabel.get(), graph1Look, true);
  7. fst::ArcSort(graph2TrueRelabel.get(), fst::StdILabelCompare());
  8. std::auto_ptr<GRAPH> res(new GRAPH);
  9. fst::Compose(graph1Look, *graph2TrueRelabel.get(), res.get());
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand