*
* @return the created fst
*/
private Fst createFst() {
TropicalSemiring ts = new TropicalSemiring();
Fst fst = new Fst(ts);
State s1 = new State(ts.zero());
State s2 = new State(ts.zero());
State s3 = new State(ts.zero());
State s4 = new State(2.f);
// State 0
fst.addState(s1);
s1.addArc(new Arc(1, 5, 1.f, s2));
s1.addArc(new Arc(2, 4, 3.f, s2));
fst.setStart(s1);
// State 1
fst.addState(s2);
s2.addArc(new Arc(3, 3, 7.f, s2));
s2.addArc(new Arc(4, 2, 5.f, s3));
// State 2
fst.addState(s3);
s3.addArc(new Arc(5, 1, 9.f, s4));
// State 3
fst.addState(s4);
return fst;
}