int curr = prevState.getDestinationState(ci).getIndex(); double dot = 0; for (GEConstraint constraint : constraints2) {
int curr = prevState.getDestinationState(ci).getIndex(); double dot = 0; for (GEConstraint constraint : constraints2) {
int curr = prevState.getDestinationState(ci).getIndex(); double dot = 0; for (GEConstraint constraint : constraints2) {
int next= currState.getDestinationState(ni).getIndex(); nuBeta.plusEquals(lattice[ip+1][curr].beta[next]); assert(!Double.isNaN(nuBeta.logVal));
int next= currState.getDestinationState(ni).getIndex(); nuBeta.plusEquals(lattice[ip+1][curr].beta[next]); assert(!Double.isNaN(nuBeta.logVal));
int next= currState.getDestinationState(ni).getIndex(); nuBeta.plusEquals(lattice[ip+1][curr].beta[next]); assert(!Double.isNaN(nuBeta.logVal));
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); counts[sj]++; CRF.State prevState = (CRF.State)crf.getState(si); for (int di = 0; di < prevState.numDestinations(); di++) { int sj = prevState.getDestinationState(di).getIndex(); this.reverseTrans[sj][indices[sj]] = si; this.reverseTransIndices[sj][indices[sj]] = di;
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }
protected CachedDotTransitionIterator(State source, Object fv, String output, double[] dots) { this.source = source; this.input = fv; this.weights = new double[source.numDestinations()]; for (int i = 0; i < source.numDestinations(); i++) { weights[i] = dots[source.getDestinationState(i).getIndex()]; } // Prepare nextIndex, pointing at the next non-impossible transition nextIndex = 0; while (nextIndex < source.numDestinations() && weights[nextIndex] == Transducer.IMPOSSIBLE_WEIGHT) nextIndex++; }