//int[] fw = {2, 1, 2};
int[] ew = {2, 1, 1, 1, 2};
Phrase f = new Phrase(fw, 1);
Phrase e = new Phrase(ew, 1);
PhrasePair pp = new PhrasePair(f, e);
tt.normalize();
hmm = new HMM(tt, at);
hmm.buildHMMTables(pp);
PerplexityReporter cr = new PerplexityReporter();
Alignment a = hmm.viterbiAlign(pp, cr);
assertEquals(a.getELength(), e.size());