public double getDelta (int ip, int stateIndex) { if (lattice != null) { return getViterbiNode (ip, stateIndex).delta; } throw new RuntimeException ("Attempt to called getDelta() when lattice not stored."); }
public double getDelta (int ip, int stateIndex) { if (lattice != null) { return getViterbiNode (ip, stateIndex).delta; } throw new RuntimeException ("Attempt to called getDelta() when lattice not stored."); }
public double getDelta (int ip, int stateIndex) { if (lattice != null) { return getViterbiNode (ip, stateIndex).delta; } throw new RuntimeException ("Attempt to called getDelta() when lattice not stored."); }
public SearchState nextState() { lookAhead(); weight = weights[prev++]; found = false; return getViterbiNode(inputPosition-1, prev-1); }
public SearchState nextState() { lookAhead(); weight = weights[prev++]; found = false; return getViterbiNode(inputPosition-1, prev-1); }
public SearchState nextState() { lookAhead(); weight = weights[prev++]; found = false; return getViterbiNode(inputPosition-1, prev-1); }
double initialWeight = t.getState(i).getInitialWeight(); if (initialWeight > Transducer.IMPOSSIBLE_WEIGHT) { ViterbiNode n = getViterbiNode (0, i); n.delta = initialWeight; anyInitialState = true; +"][source="+s.getName() +"][dest="+destination.getName()+"]"); ViterbiNode destinationNode = getViterbiNode (ip+1, destination.getIndex()); destinationNode.output = iter.getOutput(); double weight = lattice[ip][i].delta + iter.getWeight();
double initialWeight = t.getState(i).getInitialWeight(); if (initialWeight > Transducer.IMPOSSIBLE_WEIGHT) { ViterbiNode n = getViterbiNode (0, i); n.delta = initialWeight; anyInitialState = true; +"][source="+s.getName() +"][dest="+destination.getName()+"]"); ViterbiNode destinationNode = getViterbiNode (ip+1, destination.getIndex()); destinationNode.output = iter.getOutput(); double weight = lattice[ip][i].delta + iter.getWeight();
double initialWeight = t.getState(i).getInitialWeight(); if (initialWeight > Transducer.IMPOSSIBLE_WEIGHT) { ViterbiNode n = getViterbiNode (0, i); n.delta = initialWeight; anyInitialState = true; +"][source="+s.getName() +"][dest="+destination.getName()+"]"); ViterbiNode destinationNode = getViterbiNode (ip+1, destination.getIndex()); destinationNode.output = iter.getOutput(); double weight = lattice[ip][i].delta + iter.getWeight();