private static void outputLatticeRows (PrintWriter out, SumLatticeDefault lattice, int start, int end)
{
DecimalFormat f = new DecimalFormat ("0.##");
Transducer ducer = lattice.getTransducer ();
for (int k = 0; k < ducer.numStates(); k++) {
Transducer.State state = ducer.getState (k);
out.println (" <tr class=\"alpha\">");
out.println (" <td class=\"label\">α("+state.getName()+")</td>");
for (int ip = start; ip < end; ip++) {
out.print ("<td>"+f.format (lattice.getAlpha (ip+1, state))+"</td>");
}
out.println ("</tr>");
}
for (int k = 0; k < ducer.numStates(); k++) {
Transducer.State state = ducer.getState (k);
out.println (" <tr class=\"beta\">");
out.println (" <td class=\"label\">β("+state.getName()+")</td>");
for (int ip = start; ip < end; ip++) {
out.print ("<td>"+f.format (lattice.getBeta (ip+1, state))+"</td>");
}
out.println ("</tr>");
}
for (int k = 0; k < ducer.numStates(); k++) {
Transducer.State state = ducer.getState (k);
out.println (" <tr class=\"gamma\">");
out.println (" <td class=\"label\">γ("+state.getName()+")</td>");
for (int ip = start; ip < end; ip++) {
out.print ("<td>"+f.format (lattice.getGammaWeight(ip+1, state))+"</td>");
}